Skip to content
Business logic Write-up Beginner

Bypass Fitur Ganti Email via Request API Langsung

The profile email field was made read-only in the user interface, but the backend still accepted a direct API request that changed the email address. An attacker with a normal account could therefore change their own email to any address without any verification step.

medium.com

Published on medium.com

Saat melakukan pengujian biasa di salah satu target bug bounty, saya menemukan bahwa alamat email user — yang seharusnya tidak bisa diubah dari UI — ternyata masih bisa diganti langsung melalui permintaan API. Hal ini menunjukkan adanya celah pada logika bisnis (business logic flaw) dan kurangnya validasi di sisi…

MostReal, 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 trusted the frontend restriction and did not validate or authorise email changes on the server side.

Impact

An attacker could change the account email without permission and potentially abuse email-based features such as password reset, invitations and account verification, though the text does not demonstrate a full account takeover.

What the attacker needed

A normal user account; a proxy tool to edit requests

The fix

The backend should block direct email changes and require a dedicated flow with identity verification and confirmation to the old and/or new address, plus logging and notifications.

How it was found

  1. Log in to a normal user account.
  2. Open the profile page and intercept the request with a proxy tool.
  3. Change the email value in the request to another address.
  4. Forward the request to the server.
  5. Reload the profile page and see that the email has changed 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.

A website can hide or lock a field on the screen, but the server behind it is what actually saves data. Here the screen said the email could not be edited, yet the server still accepted a request that changed it. Anyone who can send that request directly, for example with a proxy tool, can skip the restriction the screen was meant to enforce.

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.