Account Takeover via Leaked Email Verification Token
The email change flow leaked both verification tokens in the HTTP response, allowing an attacker to confirm an email change without access to the victim's inbox. By chaining this with admin privileges to change a user's email, an attacker could take over the account via password reset.
As you know email-based token verification is a common security mechanism in web applications, used for email verification, password resets, and email changes. However, if these tokens are improperly handled, they can introduce severe security vulnerabilities.
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 with admin privileges could change a user's email to one they control, then reset the password to take over the account; the report was accepted as critical.
What the attacker needed
Attacker has an account; attacker has admin privileges in an organisation; victim is a user in that organisation
How it was found
- Create an account with your own email address.
- Go to profile settings and choose to change email.
- Enter the victim's email address as the new email.
- Two verification links are sent, one to each address.
- Click the link received in your own inbox and capture both tokens from the response.
- Use the token for the new email to confirm the change.
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 change your email address, the app sends a secret link to both your old and new email to confirm. The bug is that the app also shows both secrets in the response, so anyone who can see that response can confirm the change without needing the other email. This let an attacker take over accounts by changing the victim's email to one they control and then resetting the 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.