Skip to content
Info disclosure Write-up Beginner

A New Write-Up for a Vulnerability Sensitive Information Leakage

The password reset flow passed the user's email address and sometimes the reset token in the URL query string instead of the POST body. An attacker could obtain these values through the Referer header when the user clicks an external link from the reset page, potentially leading to account takeover if the token is still valid.

Yousef Ezzeldin Follow

Published on medium.com

While requesting a password reset, I observed that the user’s email address (and in some cases, the reset token) was being passed directly in the URL rather than in the POST body.

Yousef Ezzeldin, on 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.

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

How it worked

Root cause

Likely the application placed sensitive parameters in the URL query string of the password reset flow instead of sending them in the POST body, and did not set a restrictive Referrer-Policy on the reset page.

Impact

An attacker could obtain the user's email address and, if the reset token is still valid, potentially take over the account; the report also notes increased phishing risk and log exposure.

What the attacker needed

Victim clicks an external link from reset page; reset token still valid (for takeover)

The fix

Sensitive data should be sent in the POST body rather than in URLs, and sensitive pages should set a Referrer-Policy of no-referrer or strict-origin.

How it was found

  1. Request a password reset and observe that the email address (and sometimes the reset token) appears in the URL.
  2. From the reset-password page, click an external link.
  3. Check the Referer header sent to the external site and confirm it contains the sensitive data.

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 write-up has not been written yet. The Original tab links to the source.

When you reset a password, the website sometimes puts information like your email or a secret reset code in the web address (URL). If you then click a link to another site, your browser may send that full address to the other site in a header called Referer. This report shows that the reset page leaked the email and sometimes the reset code this way, which could let someone else take over the account.

What is Info disclosure?

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

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.