Skip to content
Access control Write-up Beginner

Duplicate P1 in public program

A subdomain intended for employees only allowed registration and login with any email domain, not just the company's. By changing the email domain in the requests, an attacker could register and log in with a personal email, gaining access to the employee-only system.

mohamed.yasser442200 Follow

Published on medium.com

summary: I found a subdomain with no functions, by fuzzing I found register and login function but it allows only employees. I attempted to change the email’s domain name to one that belongs to me. finally, I was in.

Spider4, 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 the email domain without validating it, relying on client-side checks or no check at all.

What the attacker needed

Knowledge of the subdomain; ability to intercept HTTP requests

How it was found

  1. Find the employee-only subdomain via fuzzing.
  2. Attempt to register with a company email and observe the restriction.
  3. Intercept the registration request and change the email domain to a personal one.
  4. Receive a confirmation that the email was created.
  5. Intercept the login request, change the email to the personal one, and request an OTP.
  6. Enter the OTP sent to the personal email and intercept the final request to change the email again, completing login.

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 website had a sign-up and login page that was supposed to be only for staff, using company email addresses. The check for 'is this a company email?' was done only in the browser, so by intercepting the request and swapping the email domain to a personal one, the server accepted it. This let an outsider create an account and log in as if they were an employee.

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 mohamed.yasser442200

View all

3 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.