Account Takeover by chaining two vulnerabilities.
The secondary email addition feature lacked CSRF protection for previously added emails, and the confirmation link's redirect_url parameter allowed open redirection. An attacker could chain these to add their email to a victim's account without the victim noticing, leading to account takeover.
Published on web.archive.org
{{media:0}}
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 application skipped CSRF token validation for secondary emails that had been previously added, and it allowed an open redirect via the redirect_url parameter in the confirmation link.
What the attacker needed
Victim is logged in; attacker has previously added the same email; victim clicks a crafted link
How it was found
- Add a secondary email to your own account and capture the confirmation request.
- Remove the CSRF token from the request and forward it; observe that the confirmation email is still sent.
- Modify the redirect_url parameter in the confirmation link to point to another page (e.g., /home).
- Create a CSRF attack page that submits the email addition request using the previously added email.
- Send the crafted confirmation link to the victim; when clicked, the attacker's email is added without a notification.
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.
This report describes two flaws. First, a form that adds a backup email to an account did not check for a security token (CSRF token) when the email had been added before, so another website could submit it on behalf of a logged-in user. Second, a link parameter could send the user to a different page after confirming, hiding the success message. Together, an attacker could silently add their own email to a victim's account and then use password reset to take over the account.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.