Skip to content
Account takeover Write-up Intermediate

Increasing impact of Information Disclosure — Full Account Takeover !

A password reset link leaked the reset token to a third party, and a separate request leaked the user id together with the email and username. An attacker who captured both requests could combine them to take over an account, though the company dismissed the issue as coming from trusted third parties.

Abhisek R Follow

Published on abhisek3122.medium.com

Hey, I’m Abhisek. Back with another write up.

Abhisek R, on abhisek3122.medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

This write-up is about chaining two information disclosure issues on a single target, referred to only as redacted.com, into a full account takeover. The feature at the centre of it is the password reset flow: a user requests a reset, receives a link by email, and follows it to set a new password. Around that flow the site also exposes user data through its own requests.

The researcher's stated interest is authentication-related bugs, and the tactic here is to take a low-severity leak and ask what else it can be combined with. The report does not name the product, the platform or the company behind redacted.com.

Setup

The report describes no accounts, roles or versions. The only tooling mentioned is a proxy, given as Burpsuite, used to inspect HTTP history while following the reset link. The precondition is simply an account on the target with an email address attached, so that a reset can be requested and the resulting link received.

Finding it

The starting point is a general observation about information disclosure. A site that puts sensitive information into GET request parameters is exposed, because those values can leak through web logs, the Referer header and similar channels. The researcher frames this as something worth actively looking for rather than only reading about.

From the original on abhisek3122.medium.com

On the target, the practical version of that idea appeared in the password reset flow. After requesting a reset, the researcher copied the link from the email, turned on the proxy and opened it. Before changing the password, the HTTP history was inspected, and the password reset token turned out to be leaked to a third party.

From the original on abhisek3122.medium.com

At this point the leak alone is not enough. Even with the reset token, an attacker can only set a new password; they still do not know the email address or username needed to log in with it.

From the original on abhisek3122.medium.com

Exploitation

Step 1: request a password reset and capture the link

A reset was requested on redacted.com and the link arrived by email. The link was copied, the proxy was enabled and the link was opened, with the HTTP history examined before the password was actually changed.

Step 2: observe the reset token leaking to a third party

The HTTP history showed the password reset token being sent to a third party. The report does not show the request itself, so the exact parameter, header or destination is not reproduced here. The consequence is that the reset token reached a third party.

Step 3: find a second leak that identifies the user

A reset token on its own is not usable for login, because the attacker does not know the email address or username. While checking the HTTP requests again, the researcher found one request leaking the user_id. That is still of limited use on its own: without the email or username tied to that user_id, it is wasted.

Step 4: browse the site and find the matching identifiers

Continuing to browse the site produced another information disclosure. This one leaked user_id, email and username together.

From the original on abhisek3122.medium.com

Step 5: combine the two leaks

With the reset token from the first leak and the identity data from the second, an attacker who obtains both requests can take over the account: reset the password with the token, then log in with the email or username that the second leak supplied.

From the original on abhisek3122.medium.com

Root cause

The report attributes the first issue to sensitive information being placed in GET request parameters, which makes it reachable through web logs, the Referer header and other channels. In this case that value was the password reset token, and it reached a third party. The second issue is a separate disclosure of user_id, email and username in the site's own requests. Neither leak is sufficient alone; the takeover depends on combining them.

Impact

Under the conditions described, an attacker who obtains both requests can take over the account: the reset token allows the password to be changed, and the second leak supplies the email or username needed to log in afterwards.

Fix

The submission was closed by the company's staff with the response that, although the behaviour described appeared to be valid, the parties involved were their trusted third parties. No remediation is described.

Variants to test

  1. Request a password reset and follow the link with a proxy recording all traffic. A positive result is the reset token appearing in a request to a third party.
  2. Review every request made while browsing the site for user_id, email or username in parameters or responses. A positive result is any of those identifiers returned where they are not needed for the page to work.
  3. Look for a request that returns user_id alone and another that maps user_id to email or username. A positive result is the pair being obtainable separately, which is the combination that made this chain work.
  4. Check whether sensitive values travel in GET parameters rather than in the body or headers. A positive result is a token or identifier visible in a URL, which is the pattern the researcher flags as leaking through logs and the Referer header.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

What happened, in plain words

A security researcher found two small leaks on a website and showed that, put together, they let someone take over another person's account. Neither leak was dangerous on its own. The first leak exposed a password reset token, which is the secret code a website emails you so you can prove you own an account and choose a new password. The second leak exposed a user's ID number, email address and username. On their own, the token lets you change a password but you do not know whose account it belongs to, and the identity details tell you who someone is but not how to get into their account. Combined, they are enough: use the token to set a new password, then log in with the email or username from the second leak.

The researcher wrote up the finding and sent it to the company. The company replied that the behaviour was valid but that the parties involved were their trusted third parties, and the report was closed. The site is referred to only as redacted.com, and the report does not name the product, the platform or the company.

From the original on abhisek3122.medium.com

The idea behind it: information disclosure

The researcher's usual interest is in bugs around logging in and accounts. The tactic in this write-up is to take a small leak and ask what it can be combined with.

The bug class here is called information disclosure. That simply means a website gives away information it should have kept private. Sometimes the leak is tiny and harmless by itself, like a number or a name appearing where it should not. The point of this write-up is that small leaks can add up.

A specific pattern makes leaks much more likely: putting sensitive information into the address of a web request. When you use a website, your browser constantly sends requests to the server, and each request has a method. Two common methods are GET and POST. A GET request carries its details in the URL itself, the address you can see in the browser bar. A POST request carries its details in the body of the request, which is not part of the address.

The problem with GET is that URLs get copied around. They end up in the server's web logs (the files where a server records every request it received), in the Referer header (a small note your browser attaches to a request saying which page you came from), and in other places such as browser history or analytics tools. If a secret is in the URL, it travels with the URL into all of those places.

Working on Computer From the original on abhisek3122.medium.com

Reading about this is not the same as doing it. The researcher's question is practical: how do you actually exploit this situation?

From the original on abhisek3122.medium.com

Setting up

The report describes no particular accounts, roles or versions. The only tool mentioned is a proxy, given as Burpsuite. A proxy sits between your browser and the website and records every request and response that passes through, so you can read the traffic afterwards. Think of it as a notebook that writes down every conversation between your browser and the server. The only precondition is an account on the target with an email address attached, so that a password reset can be requested and the link received.

Finding it

Step 1: request a password reset and capture the link

A password reset works like this: you tell the site you have forgotten your password, it emails you a link containing a one-time secret code (the reset token), and following that link lets you set a new password. The token is what proves you own the email address.

On redacted.com the researcher requested a reset, and the link arrived by email. The link was copied, the proxy was turned on, and the link was opened. Before actually changing the password, the researcher looked at the HTTP history, the list of requests the proxy has recorded.

Step 2: see the reset token leaking to a third party

The HTTP history showed the password reset token being sent to a third party. The report does not show the request itself, so the exact parameter, header or destination is not reproduced here. What matters is the consequence: the reset token reached a third party.

From the original on abhisek3122.medium.com

At this point the leak alone is not enough. Even with the reset token, an attacker can only set a new password. They still do not know the email address or username needed to log in with it.

From the original on abhisek3122.medium.com

Step 3: find a second leak that identifies the user

While checking the HTTP requests again, the researcher found one request leaking the user_id. A user_id is the internal number a site uses to tell accounts apart. It is still of limited use on its own: without the email or username tied to that user_id, it is wasted.

Step 4: browse the site and find the matching identifiers

Continuing to browse the site produced another information disclosure. This one leaked user_id, email and username together.

From the original on abhisek3122.medium.com

Step 5: combine the two leaks

With the reset token from the first leak and the identity data from the second, an attacker who obtains both requests can take over the account: reset the password with the token, then log in with the email or username that the second leak supplied.

From the original on abhisek3122.medium.com

Why it worked

The report attributes the first issue to sensitive information being placed in GET request parameters, which makes it reachable through web logs, the Referer header and other channels. In this case the value was the password reset token, and it reached a third party. The second issue is a separate disclosure of user_id, email and username in the site's own requests. Neither leak is sufficient alone; the takeover depends on combining them.

What an attacker could do

Under the conditions described, an attacker who obtains both requests can take over the account: the reset token allows the password to be changed, and the second leak supplies the email or username needed to log in afterwards.

What the company did

The submission was closed by the company's staff with the response that, although the behaviour described appeared to be valid, the parties involved were their trusted third parties. No remediation is described.

Things to try yourself

  1. Request a password reset and follow the link with a proxy recording all traffic. A positive result is the reset token appearing in a request to a third party.
  2. Review every request made while browsing the site for user_id, email or username in parameters or responses. A positive result is any of those identifiers returned where they are not needed for the page to work.
  3. Look for a request that returns user_id alone and another that maps user_id to email or username. A positive result is the pair being obtainable separately, which is the combination that made this chain work.
  4. Check whether sensitive values travel in GET parameters rather than in the body or headers. A positive result is a token or identifier visible in a URL, which is the pattern the researcher flags as leaking through logs and the Referer header.

Glossary

  • Information disclosure: a bug where a website gives away information it should have kept private.
  • GET request: a web request that carries its details in the URL, visible in the browser bar.
  • POST request: a web request that carries its details in the body, not in the URL.
  • Web logs: files where a server records the requests it received.
  • Referer header: a note your browser attaches to a request saying which page you came from.
  • Proxy: a tool that sits between your browser and a website and records the traffic, such as Burpsuite.
  • HTTP history: the list of requests and responses a proxy has recorded.
  • Password reset token: a one-time secret code emailed to you so you can prove you own an account and set a new password.
  • user_id: the internal number a site uses to tell accounts apart.
  • Account takeover: gaining control of someone else's account, for example by changing their password and logging in.
  • Third party: a company or service other than the website you are using.
  • Origin: the combination of scheme, host and port that identifies where a request is going; a request to a different origin goes somewhere else.

More by Abhisek R

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.