Skip to content
Business logic Write-up Beginner

From Directory Listing to Breaking Logins

A media directory listing exposed user email addresses as folder names, and the email-change endpoint accepted an email already used by another account without verification. By setting an attacker account's email to a victim's email, the attacker could create duplicate emails and cause login to fail with a server error, locking the victim out.

medium.com

Published on medium.com

What started as a simple misconfiguration turned into a full vulnerability chain that could block users from accessing their accounts.

MD Aariz Rahman, 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 media directory was served with listing enabled and used raw email addresses as folder names, while the email-update endpoint lacked a uniqueness check and verification step.

Impact

A legitimate user could be locked out of their account because login fails once duplicate emails exist, and this could be repeated for multiple users.

What the attacker needed

Publicly reachable media directory; ability to create accounts; victim email known from listing

How it was found

  1. Open the media profile pictures API path in a browser and observe the public directory listing.
  2. Note that folder names are user email addresses.
  3. Create two accounts, one as victim and one as attacker.
  4. Send an email-update request from the attacker account using the victim's email address.
  5. Log out and attempt to log in with the duplicated email.
  6. Observe the server error that prevents 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.

A folder on the server was left open so anyone could browse it, and the folder names were people's email addresses. Separately, the site let a user change their account email to one that another account already used, without checking or confirming it. With two accounts sharing one email, the login system got confused and returned an error, so the real owner could no longer sign in.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.