Skip to content
Business logic Write-up Intermediate

Business Logic Vulnerability: Payment bypass

The mobile app allowed a user to modify the server's response to a discount request, setting the order price to zero, and the order was placed without payment. An attacker could obtain free orders and still earn reward points.

vrushabhd Follow

Published on vrushabhd.medium.com

Who doesn’t like coffee? One day my friends took me to the Cafe for a treat, it was new for me and also an expensive one (cafe like Starbucks).

Mr. Vrushabh, on vrushabhd.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 server did not validate the final order amount after applying reward points, relying on a client-side value that could be tampered with.

Impact

An attacker could place orders without paying and still earn reward points, leading to financial loss for the cafe.

What the attacker needed

Android app with proxy setup; valid user account; reward points to apply

How it was found

  1. Log in to the Android app with an OTP.
  2. Add items to the cart and proceed to checkout.
  3. Apply reward points to get a discount.
  4. Intercept the discount request and change the discounted price in the response to zero.
  5. Forward the modified response and place the order.

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.

The app trusted a price value that came back from the server and let the user change it before the order was finalised. Because the server did not check the real amount again, the user could pay nothing and still get the order.

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.