How I hacked India’s biggest startup
The Ola cab app's wallet recharge API did not validate order IDs or payment details, allowing an attacker to reuse a single order ID to recharge their wallet with any amount without paying. The author demonstrated this by replaying API calls and receiving multiple successful recharges.
thenextweb.com
Published on thenextweb.com
A few weeks ago I was monitoring my phone traffic from a proxy server. While doing that I saw Ola API calls going from my phone (since I was booking a cab).
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 order ID was unique or that the payment was legitimate, and it accepted arbitrary values for checksum and card ID without cross-checking with the payment provider.
Impact
An attacker could recharge their Ola wallet with any amount for free, potentially causing financial loss to Ola, though the author suggests keeping amounts low to avoid alerting.
What the attacker needed
Ability to intercept and modify API calls; an Ola account
The fix
The server should validate that each order ID is unique and used only once, cross-check payment details with the payment provider, and implement proper server-side validation and token mechanisms.
How it was found
- Monitor phone traffic with a proxy to capture Ola API calls.
- Identify the recharge process: generate order ID, make payment gateway calls, then acknowledge transaction.
- Generate an order ID via the API.
- Send the final API call to acknowledge the transaction without completing payment.
- Reuse the same order ID to perform multiple recharges with arbitrary amounts.
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 pay for something online, the server should check that the payment actually happened and that each order is used only once. Here, the server trusted whatever the app sent and never checked if the order was already paid for or if the payment details were real. So someone could tell the server 'I paid' over and over and get free credit.
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.