How I bypassed payment in one of the popular mobile apk and got free subsciption
The mobile app trusted a client-supplied payment amount, so an attacker could change the amount in the purchase request to a trivial sum and still receive the subscription. The author did this and obtained the paid subscription for a fraction of the price.
Helloo hackers, I hope you are doing well, in this blog I’m gonna show you how I bypassed the payment in one of the popular talking application. At the time of this writing this applicatoin has over 4M+ downloads.
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 accepted the payment amount from the client request without validating it against the expected price.
Impact
An attacker could obtain a paid subscription without paying the full price, causing financial loss to the service.
What the attacker needed
A mobile device or emulator; a proxy to intercept traffic; an account in the app
How it was found
- Set up a mobile testing environment with a proxy and install the app.
- Open the subscription section and choose a package.
- Capture the purchase request.
- Change the amount in the request to a very small value.
- Submit the modified request and receive the subscription.
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 in an app, the app sends a request to a server saying what you want and how much you will pay. Here the server believed the amount sent by the app instead of checking the real price itself. So someone could edit that request and pay almost nothing while still getting the paid feature.
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.