Some Weird Zero Click Account Takeover Techniques
The write-up describes four separate account takeover flaws found during penetration tests: a password reset endpoint that trusted a client-supplied email without checking the token step, a password change endpoint that accepted any user ID from any session, an email verification endpoint that used a four-digit code as the only account identifier, and a login flow where a verification key was bound to a client-supplied email rather than the verified one. An attacker could set or take over other users' accounts, in some cases without any victim interaction.
medium.com
Published on medium.com
This Time, I will Talk about some weird Account Takeover Techniques that I have Found in a recent Penetration Test Engagements with BugSwagger, LLC.
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 server treated each request in a multi-step flow independently, so the final step trusted client-supplied identifiers (email, user ID, or verification code) without confirming the earlier verification step had succeeded for that same identity.
Impact
An attacker who knows a victim's email address could set a new password on that account and take it over, and in the other flows a low-privileged user or an unauthenticated script could take over any account, including a company CEO's.
What the attacker needed
Victim email address known; no victim interaction needed
The fix
The server should bind each step of a reset, change or verification flow to a server-side session or token and confirm the earlier verification succeeded for the same identity before acting.
How it was found
- Request a password reset link for your own account and intercept the request that saves the new password.
- Replace your email in that request with the victim's email and send it.
- The server sets the new password on the victim account and returns their details.
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 site usually checks a secret code from your email before letting you set a new one. Here, the step that actually saved the new password never checked that the earlier code check had passed, so anyone who knew an email address could set that account's password. Similar mistakes in other flows let a low-privileged user or an unauthenticated script take over accounts.
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.