The Silent Breach: A Story of Leaked Token and PII
The password reset endpoint returned the full user record, including PII and the password reset token, in its response. An attacker could use the leaked token with a known reset link to take over any employee account, including the admin.
medium.com
Published on medium.com
Hello, fellow bug hunters and cybersecurity geeks! I’m Yash Nimbalkar.
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
Impact
An attacker could take over any employee account, including the admin, and access PII, without brute-forcing.
What the attacker needed
Knowledge of employee email addresses; a password reset link (found via waybackurls)
The fix
The password reset response should not include PII or the reset token; it should return a generic message, and reset links should be one-time and expire quickly.
How it was found
- Visit the console subdomain and note there is no sign-up option.
- Find employee names on the About Us page and guess email addresses in the format [redacted]
- Submit a forgot-password request with a guessed email and capture the response.
- Observe that the response includes PII and the password reset token.
- Find a password reset link via waybackurls.
- Use the leaked token with the reset link to access the account.
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 forget your password, a website sends a special code (a token) to your email so you can set a new one. Here, the website also put that secret code and personal details into the reply it sent back to the browser, where anyone could read them. Because the attacker could guess employee email addresses and find the reset page, they could use the leaked code to log in as those employees.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.