How I Bypassed Verification & One Pro Tip for Bug Hunters
The application relied on client-side boolean flags in API responses to decide whether an account was verified, so an attacker could flip those values in transit and reach the verified state without completing email verification.
medium.com
Published on medium.com
As part of my usual hunting approach, I first open the target without analyzing the requests and API values. I prefer to fully understand the target before diving into details.
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 client-side boolean flags (accountSetupFinished and accountVerificationNeeded) to gate the verified state instead of enforcing verification server-side.
Impact
An attacker could bypass email verification and access the application as a verified user, though the text does not show what actions that unlocked.
What the attacker needed
Ability to intercept and modify responses; a newly created account
The fix
The server should enforce verification state server-side and not rely on client-supplied boolean flags.
How it was found
- Create an account on the target and reach the email verification step.
- Try logging in without verification; this did not work.
- Note the API response values accountSetupFinished set to false and accountVerificationNeeded set to true.
- Use a proxy match-and-replace rule to change those values to true and false respectively.
- Refresh the page and observe that the account is treated as verified.
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.
After signing up, a site usually asks you to confirm your email before you can use your account. Here the site trusted a simple true/false value sent to the browser to decide if you were verified. By changing that value on the way to the browser, the author made the site think the account was already confirmed.
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.