Skip to content
Access control Write-up Beginner

Admin Panel Bypass via Unverified Email

The application allowed users to add an unverified email address to their account, and the admin panel's access control only checked the email domain without verifying ownership. An attacker could add an unverified @example.com email and gain unauthorized access to the admin panel.

medium.com

Published on medium.com

This is Rahima, a Bug Bounty hunter and Jr Penetration Tester. In my bug bounty journey, I’ve learned that impactful vulnerabilities are not always complex.

Rahimahaq, 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 access control for the admin panel checked only the email domain of any email on the account, without requiring that the email be verified.

What the attacker needed

A free account on app.example.com; ability to add an email address

How it was found

  1. Create a regular user account on app.example.com with a personal email.
  2. Add a new email address [redacted] to the account.
  3. The system sends a verification OTP to that email, but do not verify it.
  4. The unverified email is still added to the account.
  5. Access admin.example.com and observe that access is granted.

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.

The admin panel was supposed to be only for people with a company email address. The system let users add any email to their account, even if they couldn't prove they owned it. The admin panel then trusted that email without checking if it was verified, so anyone could pretend to have a company email and get in.

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.

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.