How to Bypass Company Email Feature While Creating an Account
The signup flow enforced a company-email-only rule only on the initial form, then trusted an email address supplied in the URL on the next page. An attacker could change that parameter to a personal email and complete account creation, receiving the verification email.
Published on medium.com
In this writeup I am gonna help you to find an easy bug. Its really a beginner friendly bug.
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 value passed in the URL on the second signup step instead of re-checking the company-email restriction or binding it to the first step.
Impact
An attacker could create an account with a personal email address despite the company-email-only restriction, though some programmes treat this as low severity or informational.
What the attacker needed
Access to the signup page; a personal email address
The fix
The server should re-validate the company-email restriction on the second step and not trust an email address supplied in the URL.
How it was found
- Open the signup page and try a personal email address.
- Observe the error requiring a company email.
- Enter a company email address and proceed to the next page.
- Note the email parameter in the URL of the next page.
- Replace that parameter with a personal email address and refresh.
- Complete the remaining details and receive the verification email.
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 wanted only work email addresses to sign up, but it checked that rule on the first page only. The next page took the email address straight from the web address (the URL), so anyone could edit it to a personal address and finish signing up.
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.