Business-Email Policy & OTP Bypass
The signup form's business-email-only rule was enforced only in the browser, so a modified request let a personal email register. The email verification step could also be bypassed by editing the server's error response to look like success, marking the account verified without proving email ownership.
medium.com
Published 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
The application trusted client-side checks and client-supplied responses for security decisions instead of validating them on the server.
Impact
Users could register with personal emails despite the policy, and accounts could be activated without owning the email address.
What the attacker needed
A proxy tool to intercept requests; access to the signup page
The fix
The email-domain policy should be enforced server-side, and verification codes should be validated only on the server so client responses cannot determine the outcome.
How it was found
- Open the signup page and enter a personal email; the UI shows a business-only error.
- Enter a business-looking email to pass client-side validation.
- Intercept the signup request with a proxy tool.
- Change the email in the request body back to the personal address.
- Forward the request; registration completes.
- After registration, enter an incorrect verification code and intercept the request.
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 website can check things in your browser before sending data to its server, but an attacker can change that data on the way. Here the site trusted the browser's checks, so changing the email address or faking a success reply let someone register and verify an account without owning the email.
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.