Skip to content
Account takeover Write-up Intermediate

How I Bypassed Email Confirmation: A Playful Journey into the World of Bug Hunting

The application allowed pending and collaborator users' email addresses to be modified via intercepted requests, and an invitation resend feature could be manipulated to send a verification link to an arbitrary email. An attacker could use this to verify a victim's email address without their consent, enabling a pre-account takeover.

mrasg Follow

Published on medium.com

Today, I want to share the tale of an email confirmation bypass vulnerability I uncovered. It’s one of those juicy bugs that can lead to interesting exploits depending on the application.

Ahmed Samir Ghallab, on medium.com

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 trusted a client-supplied email parameter when resending invitations and did not bind the verification token to the original intended recipient.

Impact

An attacker could verify a victim's email address without their consent, potentially leading to a pre-account takeover by adding secondary login methods or changing credentials.

What the attacker needed

Attacker has two accounts on different subdomains; victim's email address is known; attacker can intercept and modify requests

The fix

The application should not allow modification of email addresses for pending or collaborator users via client-supplied parameters, and invitation tokens should be bound to the original recipient.

How it was found

  1. Create an account on the org domain and another on the collaborator domain.
  2. From the org account, create a project and send a join request from the collaborator account.
  3. Accept the join request and use the Resend Invitation feature to generate an invitation link.
  4. Intercept the request on the project domain and change the collaborator's email to the victim's email.
  5. Open the resent invitation link and complete registration using the victim's email.

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 sign up, many sites send a link to your email to prove it is yours. This report shows a way to make the site send that proof link to an email the attacker controls, so the attacker can mark someone else's email as verified without them knowing. That can later let the attacker take over the victim's account.

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.

More by mrasg

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.