How I Found a Zero-Click Account Takeover Vulnerability in a U.S
A password reset link used a customer ID parameter alongside a reset token, and the token was validated against the full parameter value while the password update used only the part before a null byte. An attacker could therefore change another customer's password without any action from the victim.
Published on medium.com
A step-by-step breakdown of how simple URL parameter tampering combined with a classic null byte injection (%00) led to a full zero-click account takeover vulnerability that potentially impacted thousands of users.
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 reset token was validated against the full customer ID parameter while a later C-style string function truncated the value at a null byte, so the password write targeted a different account than the one the token was checked against.
Impact
An attacker could take over any other customer's account with no action from the victim, potentially affecting thousands of users.
What the attacker needed
A free account; a second account as the victim; no victim interaction needed
How it was found
- Create an attacker account and a victim account, noting their sequential customer IDs.
- Request a password reset for the attacker account and capture the reset link with its token.
- Edit the customer ID parameter to place a null byte between the attacker ID and the victim ID, keeping the attacker's token.
- Open the modified link, which changes the victim's password to the attacker's chosen password.
- Log in as the victim using the new password.
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 site emails you a link containing a secret code so it knows the request is really yours. Here the link also contained a number identifying your account, and the site checked the secret code against one number but then changed the password for a different number hidden after a special character that tells some programs to stop reading. That let the attacker take over someone else's account just by editing the link.
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.