Skip to content
Business logic Write-up Beginner

Disrupting an Application’s User Registration Process in 10 mins

The profile update endpoint accepted an email address and username supplied by the client, so a user could change their account's email to another person's address without verification. An attacker could then log in with their old email while the profile showed the victim's email, disrupting account registration and attribution.

Karan Arora Follow

Published on infosecwriteups.com

So let's start with the introduction of our target. The target that I was hunting on is an e-commerce website.

Karan Arora, on infosecwriteups.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 server trusted client-supplied emailAddress and username fields in the profile update request without verifying ownership or requiring a confirmation step.

Impact

An attacker could set another person's email address on their own account, so later actions were logged under the victim's identity, and no notification was sent to the victim; the attacker could still log in with their old email.

What the attacker needed

A free account; ability to intercept HTTP requests

The fix

The server should not accept client-supplied email or username changes without verifying ownership, for example by requiring a confirmation link sent to the new address.

How it was found

  1. Create and verify an account on the target site.
  2. Open the edit profile page and change any basic detail.
  3. Intercept the save request in a proxy tool.
  4. Replace the email address and username values with the victim's email address.
  5. Forward the request and observe the profile now shows the victim's email.
  6. Log out and log in again with the original attacker email to confirm it still works.

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 edit your profile, the website sends a request to its server containing your details. Here the server trusted whatever email address the browser sent, instead of checking that the user is allowed to change it. That let one person put someone else's email on their own account.

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 Karan Arora

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.