Discovering a Hidden Security Loophole: Rent luxury Cars for a Single Dollar
The car rental service accepted encoded price values in the booking request without verifying them against the actual product price. An attacker could reuse encoded values from a cheaper product to book a luxury car for a nominal fee.
Published on medium.com
I am excited to share an intriguing security vulnerability that I discovered in a car rental service a few months ago. Leveraging this loophole allowed me to rent any vehicle, for any duration, at a mere cost of 1 inr.
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 trusted client-supplied encoded price values without validating them against the actual product price.
Impact
An attacker could book any vehicle for any duration at a drastically reduced price, causing financial loss to the service.
What the attacker needed
Access to the booking flow; ability to intercept requests
How it was found
- Analyse the add-to-cart and payment request flow.
- Capture the booking request containing encoded price parameters.
- Replicate the request for a cheaper product to obtain its encoded price value.
- Replace the encoded price in the luxury car booking request with the cheaper value.
- Submit the request and complete payment at the reduced price.
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 price is usually sent from your browser to the server. If the server trusts that price without checking it, you can change it to pay less. Here, the price was hidden in an encoded string, and the attacker swapped it with a cheaper one.
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.