Some Logic Bugs in Email Handling
The report describes three business logic flaws in email handling: a mass assignment issue allowing email change via a direct API call, inconsistent email verification between a main domain and a subdomain, and the ability to reserve an unverified email address. An attacker could modify account emails without proper verification, potentially leading to account takeover or denial of service for legitimate users.
Published on medium.com
A few small inconsistencies in email handling logic were enough to break trust in account identity flows across multiple systems.
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 inconsistent backend validation and over-reliance on UI restrictions, leading to mass assignment and missing verification checks.
Impact
These issues could lead to unauthorized email modification, verification bypass, email reservation without ownership confirmation, and potentially account takeover when chained with other issues, as well as denial of access or registration for legitimate users.
What the attacker needed
A free account; victim's email address known; shared session across subdomains
How it was found
- Send a profile update request to the user endpoint and observe that the email is included in the response.
- Change the endpoint to the email change endpoint and modify the request body to include a new email field.
- Send the request and observe that the email is updated successfully.
- On the main domain, change the email via the UI and note that a verification email is sent.
- On a subdomain, use the same session to update the profile via a different endpoint and observe that the email is updated without the same verification.
- Add a secondary email belonging to another user without completing verification, and observe that the email becomes reserved.
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.
This report shows three ways email handling can go wrong. First, a website might let you change your email through a hidden API request even if the button is missing. Second, a subdomain might not check email verification as strictly as the main site. Third, you might be able to claim someone else's email address by adding it without verifying, blocking them from using it.
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.