Skip to content
Access control Write-up Intermediate

Bypass Email Verification in Mozilla

An API endpoint returned verification tokens for unverified email addresses, allowing an attacker to verify any email address without access to its inbox. This enabled monitoring of arbitrary email addresses without the owner's permission.

0d-amr Follow

Published on 0d-amr.medium.com

Hi, I’m Amr Kadry, a penetration tester and bug hunter, acknowledged by over 45 companies including Mozilla, CrowdStrike, Canva, Vimeo, and others. Today, I want to share an interesting business logic vulnerability I recently discovered in one of Mozilla’s products.

Amr, on 0d-amr.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

The API endpoint returned verification tokens for unverified emails without proper access control or filtering.

Impact

An attacker could verify and monitor any email address without the owner's permission.

What the attacker needed

A free Mozilla account; ability to add an email for monitoring

The fix

The vulnerability was fixed by removing the unused API endpoint.

How it was found

  1. Access the /api/v1/user/breaches endpoint.
  2. Observe that the response includes verification tokens for unverified emails.
  3. Use the leaked token in the verification email endpoint to confirm the 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 add an email to a service, it usually sends a secret code to that email to prove you own it. Here, a part of the website that lists your monitored emails accidentally included those secret codes for emails you hadn't yet proven you owned. That meant someone could take the code and confirm any email address as theirs, even if they didn't control it.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by 0d-amr

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.