Skip to content

fix: strip client-supplied X-Prerender-* headers in the HAProxy backend - #2

Open
Lasalot wants to merge 1 commit into
add-haproxy-configfrom
fix/forward-header-allowlist
Open

Lasalot wants to merge 1 commit into
add-haproxy-configfrom
fix/forward-header-allowlist

Conversation

@Lasalot

@Lasalot Lasalot commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

What

The HAProxy backend prerender now deletes any inbound X-Prerender-* headers (http-request del-header X-Prerender -m beg) before setting the trusted X-Prerender-Token.

Why

The backend forwarded the full inbound client request to service.prerender.io. A client could inject X-Prerender-Url, which makes the service render an attacker-chosen URL on your token (open proxy / SSRF). Mirrors the CloudFlare worker header-allowlist fix.

Base

Targets add-haproxy-config because haproxy.cfg only exists on that (as-yet-unmerged) branch.

🤖 Generated with Claude Code

The prerender backend forwarded the full inbound request, so a caller
could inject X-Prerender-Url and make the service render an
attacker-chosen URL on your token (open proxy / SSRF). Delete any
inbound X-Prerender-* headers before setting the trusted token. Mirrors
the header-allowlist fix shipped in the CloudFlare worker.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant