Skip to content
Business logic Write-up Intermediate

$$ Unlocking Hidden Vulnerabilities: Uncovering Business Logic Fl

The article describes three business logic flaws: a negative coupon amount that increased the cart balance, a client-side trial check that could be bypassed by editing local storage, and an IDOR in an admin API that allowed access to admin functions. An attacker could gain free credit, lifetime premium access, or perform admin actions.

Aman Sharma Follow

Published on infosecwriteups.com

Friend link | free link

Aman Sharma, 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 missing server-side validation and trust in client-side controls, allowing users to manipulate values that should be enforced by the server.

Impact

Attackers could obtain free credit, lifetime premium access, and perform admin actions such as deleting users and modifying records.

What the attacker needed

A user account; ability to intercept and modify requests

The fix

The application should enforce all business logic checks on the server side and never trust client-provided data.

How it was found

  1. Observe normal workflows such as signup, checkout, and profile updates.
  2. Use Burp Suite to modify parameters like prices, dates, and user IDs.
  3. Test for race conditions using Turbo Intruder to spam requests.
  4. Check for client-side trust issues by editing JavaScript variables and local storage.

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.

Business logic flaws are mistakes in how an application is designed to work, not coding errors. They let attackers use normal features in unintended ways, like changing a price to a negative number to get free money. These bugs are hard for automated scanners to find because the requests look legitimate.

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 Aman Sharma

View all

34 more disclosed reports, 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.