Skip to content
Business logic Write-up Beginner

UI Says No to Email Change, Backend Says ‘Sure, Why Not?’”

The profile page only allowed changing name and birthday, but the backend accepted an email change when the request endpoint and parameter were altered. An attacker could change the account email without re-verification, potentially taking over the account.

medium.com

Published on medium.com

Hello Hunters! I’m Abdelrahman (A0xtrojan), and I’m excited to share my write-up with you, found in a public program on HackerOne.

A0xtrojan, 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

Likely the backend did not enforce that email changes are disallowed or require verification, relying only on the UI to restrict the action.

Impact

An attacker could change the email address on an account without re-verification, which could lead to account takeover.

What the attacker needed

A free account; ability to intercept HTTP requests

How it was found

  1. Create an account and log in.
  2. Go to profile settings, which allows changing name and birthday but not email.
  3. Capture the request while changing the birthday using Burp Suite.
  4. Send it to Repeater and change the endpoint from birthday to email.
  5. Replace the birthday value with a new email address.
  6. Send the request and observe the email is changed; then log in with the old email and password without re-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.

A website's user interface can hide or disable a feature, but the server behind it may still accept requests for that feature. Here, the profile page did not show an email change option, yet the server processed a modified request that changed the email. This means someone could change the email on an account without proving they own the new address.

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.

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.