Upgrade plan from Free to Paid via Response Manipulation
The site decided which plan a user had on the client side, so a free user could edit the server's response to mark themselves as paid. An attacker could then use paid-only features such as premium themes without paying.
Published on ibraradi.gitbook.io
I found this while testing on a target let’s call it redacted.com because the report is Unresolved.
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 application enforced paid-plan restrictions only in the browser response rather than on the server, so client-side values controlled access.
Impact
A free user could use paid features without subscribing, and the same client-side trust could expose other restricted features.
What the attacker needed
A free account; ability to intercept and edit responses
The fix
The server should check the user's plan and feature entitlements on every request instead of relying on values returned to the browser.
How it was found
- Change between two free themes and observe the request that sets the theme.
- Replace the free theme name with a paid theme name and see the change take effect.
- Create a paid account and a free account, then compare their index page responses.
- Intercept the free user's response and replace every 'Free' value with 'paid'.
- Change the feature map values from false to true and from limited access to full access.
- Load the modified response and use the site as a paid user.
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.
A website sends data to your browser, and your browser shows it to you. Here the site trusted that data to decide what you were allowed to use, instead of checking on its own server. By changing the data on the way in, a free user could pretend to be a paying customer.
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.