How I Bought A 240 00 Annual Subscription For Bargain 0 01
The payment request included a package_id parameter that could be changed to any valid SKU, including a test SKU priced at £0.01. An attacker could buy a premium annual subscription for a penny instead of the full price.
Published on infosecwriteups.com
I found a way to alter a premium subscription service price and bought it for a penny. This is how I did it.
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
The server accepted any package_id supplied by the client without checking whether that package was enabled for public purchase, allowing test SKUs to be used.
Impact
An attacker could buy a premium annual subscription for a penny, and if public, existing customers could renew at that price, causing lost revenue.
What the attacker needed
A free account; ability to intercept HTTP requests; a valid payment card
The fix
Add an enabled flag to each SKU and have the payment code reject transactions using disabled SKUs.
How it was found
- Sign up as a new user and go to the payment page.
- Enter a test credit card and submit the payment.
- Inspect the request and note the package_id parameter.
- Use Burp Intruder to try package IDs from 1 to 10000.
- Find a package priced at £0.01 for an annual term.
- Repeat the purchase with real card details, intercept the request, and replace the package_id with the cheap one.
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, your browser sends a request to the server that includes an identifier for the product. Here, the server trusted whatever identifier the browser sent, so the buyer could swap the expensive product's identifier for a cheap test product's identifier. The server then charged the cheap price but still gave the expensive subscription.
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.