Negative AddOn to Financial Flaw — Business Logic Vulnerability
The rental car service allowed a negative quantity for an optional insurance add-on, which reduced the total booking price instead of being rejected. An attacker could book a rental with full insurance for a fraction of the normal advance payment.
Published on vrushabhd.medium.com
Hello everyone! I recently stumbled upon a really interesting and potentially high-impact vulnerability on a rental car service website.
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 that the quantity of an add-on must be a positive integer, and it used the supplied quantity directly in price calculation.
Impact
An attacker could book a rental car with full insurance for a much lower advance payment than intended, causing financial loss to the company.
What the attacker needed
A free account; select a car and location offering the add-on; intercept and modify the booking request
The fix
The server should validate that the quantity of any add-on is a positive integer (at least 1) and reject negative values.
How it was found
- Create an account and start a booking for a car in a location that offers the optional insurance add-on.
- Proceed to the payment stage and intercept the request that contains the 'extras' parameter.
- Change the quantity of the insurance add-on from 1 to a negative number.
- Forward the request and observe that the total price is reduced by the cost of the add-on.
- Complete the booking and pay the reduced advance payment.
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 book something online, the website sends details like how many extras you want to the server. The server should check that this number makes sense. Here, it didn't check, so someone could say they wanted minus one insurance policy, and the price went down instead of up.
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.