Skip to content
Business logic Write-up Beginner

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.

som3a Follow

Published on som3a.medium.com

Hope you’re all doing great! Today, I’ll be sharing a logic bug I found in a PUBLIC PROGRAM on HackerOne.

0xSOM3A, on som3a.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

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

  1. Register an account with a fake email and verify it.
  2. Go to the profile settings page.
  3. Capture the request that updates profile details.
  4. Change the JSON key from an editable field to email and set a new email value.
  5. Send the modified request.
  6. 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.

More by som3a

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.