How I Discovered a Critical Vulnerability and Took Over an Organization Using Burp Suite
The password reset API accepted a modified request that replaced the admin's registered mobile number with the attacker's own, so the OTP was sent to the attacker. The attacker could then complete the reset and take over the organisation's admin account.
Published on medium.com
What started as a casual exploration of a website led me to uncover a serious security flaw that allowed me to take over an entire organization’s account. What I initially thought was a simple “forgot password” feature turned into a major discovery with potentially catastrophic implications.
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 password reset API accepted a client-supplied phone number without checking it against the account's registered number.
Impact
An attacker could reset the admin password and gain full control of the organisation's account and internal data.
What the attacker needed
Knowledge of the organisation ID; ability to intercept and modify requests
The fix
The reset API should ignore any client-supplied phone number and only send the OTP to the number already stored for the account.
How it was found
- Find the organisation ID using search engine queries.
- Capture the password reset traffic in an intercepting proxy.
- Start a reset and note that an OTP goes to the admin's phone.
- Edit the reset request to use the attacker's phone number.
- Receive the OTP on the attacker's phone and complete the reset.
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.
A password reset usually sends a one-time code (OTP) to the phone number on file. Here the server trusted a phone number supplied in the request instead of using the stored one, so the attacker received the code and could set a new password.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.