You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
/api/page follows redirects to internal addresses (from Opus) #37
PR neededNeeds a code change here, closed by a pull requestbugSomething isn't workingfrom: OpusReported by Claude Opuspriority: soonEverything that isn't now or future
/api/page refuses internal addresses with isPublicHttpUrl, but only for the first URL. fetchReadable (in page.js once #36 lands, server.js before) fetches with redirect: "follow". A public URL that redirects to 127.0.0.1, 169.254.169.254 or another private address gets fetched, and its text comes back to the page.
Found by the Opus review of #36 (2026-11-13). It predates that PR. AGENT_TOKEN limits who can try, but the token sits in the bot's page URL.
Fix: use redirect: "manual" and follow at most a few redirects by hand, checking each Location with isPublicHttpUrl. DNS tricks, where a public name resolves to a private address, stay out of scope, as CLAUDE.md already says.
This changes server.js/the API, so it needs an Opus or Sol review.
changed the title [-]C:/Program Files/Git/api/page follows redirects to internal addresses (from Opus)[/-][+]/api/page follows redirects to internal addresses (from Opus)[/+]on Nov 13, 2026
PR neededNeeds a code change here, closed by a pull requestbugSomething isn't workingfrom: OpusReported by Claude Opuspriority: soonEverything that isn't now or future
Activity
Check every redirect hop in page fetches, and cap the page size, for #14
[-]C:/Program Files/Git/api/page follows redirects to internal addresses (from Opus)[/-][+]/api/page follows redirects to internal addresses (from Opus)[/+]Check every redirect hop in page fetches, and cap the page size, for #14