User Interface Says No, Backend Says Yes — Story of Bypassing Email Verification
The profile update endpoint accepted an email field in the JSON body even though the user interface did not allow changing the email. An attacker could set any email address on their account without verifying ownership of that address.
Hope you’re all doing great! Today, I’ll be sharing a logic bug I found in a PUBLIC PROGRAM on HackerOne.
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 backend did not restrict which fields could be updated, so it accepted an email change even though the user interface hid that option.
Impact
An attacker could register an account using any victim's email, bypass email verification, and potentially take over their identity on the platform.
What the attacker needed
A free account; ability to intercept HTTP requests
How it was found
- Register an account with a fake email and verify it.
- Go to the profile settings page.
- Capture the request that updates profile details.
- Change the JSON key from an editable field to email and set a new email value.
- Send the modified request.
- Observe that the email is updated without verification.
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.
When you sign up, the website usually sends a link to your email to prove you own it. Here, the profile page did not show an email field, but the server still accepted an email value if it was added to the request. That let someone put another person's email on their account without proving they owned 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.