Skip to content
Info disclosure Disclosed report Intermediate

Failure to strip Proxy-Authorization header on change in origin

When a request with Proxy-Authorization, Authorization and Cookie headers is redirected to a different host, the client strips the latter two but leaves Proxy-Authorization in place. An attacker controlling the redirect target could therefore receive the proxy credentials.

grahamcampbell Follow

Originally disclosed on HackerOne

  • Disclosed after 21 days

Summary:

Failure to strip Proxy-Authorization header on change in origin.

AI was not used. I maintain the PHP Guzzle HTTP package which uses curl, and noticed we have the same issue as curl in this regard. I was made aware of this issue when golang patched something similar a few hours ago: CVE-2025–4673.

Affected version

8.14.1

Steps To Reproduce:

cURL appears to strip authorization and cookie, but not proxy-authorization. Send a request to a server that responds with a redirect to another host with all three headers set, and notice only the first two get stripped off the follow-up request.

Supporting Material/References:

[list any additional material (e.g. screenshots, logs, etc.)]

  • [attachment / reference]

Impact

Summary:

Information from the proxy authorization header exposed to bad actor.

The original report as published on HackerOne, by grahamcampbell. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the redirect handling strips Authorization and Cookie headers on a cross-origin redirect but does not include Proxy-Authorization in that strip list.

Impact

Proxy credentials could be exposed to a bad actor who controls or observes the redirect target.

What the attacker needed

Client follows a cross-host redirect; request carries a Proxy-Authorization header

How it was found

  1. Send a request to a server with Proxy-Authorization, Authorization and Cookie headers set.
  2. Have that server respond with a redirect to a different host.
  3. Observe that only Authorization and Cookie are removed from the follow-up request.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A proxy is a middle server that some networks require you to log in to before reaching the internet, and the Proxy-Authorization header carries those login details. When a website redirects your request to a different host, sensitive headers should be removed so the new host does not learn them. Here the proxy login header was kept, so the new host could see it.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from curl

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.