Business Logic Bypass From One Website To Many
A coupon verification API accepted a client-supplied discount value without validating it on the server, so a shopper could set any discount amount at checkout. The same third-party API was used by many other shops, so the same tampering worked across them.
Hi, Guys hope you all are doing well, fine, and healthy. I'm back with another finding
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 coupon verification endpoint trusted a client-supplied discount value instead of calculating the discount server-side.
Impact
An attacker could place orders with an arbitrary discount, reducing the total below zero, and the same flaw affected many other websites using the same third-party API.
What the attacker needed
A shopper account; ability to intercept requests; target uses the same third-party API
The fix
The discount should be calculated and validated on the server side rather than trusted from the client request.
How it was found
- Log in and add products to the cart.
- Apply the store offer and intercept the request.
- Change the discount value in the request and send it.
- Observe the altered discount reflected in the grand total.
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 buy something online, the shop's server should decide how much a coupon is worth. Here the server trusted a number sent by the browser instead, so a person could change that number and pay less, or even get money back. The same faulty service was used by many shops, so the trick worked on all of them.
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.