Uncovering a critical bug : Zero-click ATO
The password reset link contained the OTP encoded only in Base64, and the same OTP was reused across reset requests. An attacker could decode the code parameter and brute-force the OTP to take over accounts without any user interaction.
medium.com
Published on medium.com
Free Article
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 code was only Base64-encoded rather than protected with a strong, random, single-use token, and the same OTP was reused.
Impact
An attacker could brute-force the OTP and take over accounts without the victim doing anything, though the report does not show a completed takeover.
What the attacker needed
Ability to request a password reset; access to the reset link or code
How it was found
- Sign up and notice the activation link is weak and open to email verification bypass.
- Request a password reset and receive a link containing an email and code parameter.
- Decode the code parameter and find it is the original OTP in Base64.
- Repeat the reset request and confirm the same OTP is returned each time.
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 with a secret code. Here the code was only scrambled in a simple, reversible way (Base64), not protected, and it stayed the same every time. Anyone who saw the link could work out the code and reset someone else's 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.