Skip to content
Business logic Write-up Beginner

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.

Ibrahim Radi Follow

Published on ibraradi.gitbook.io

I found this while testing on a target let’s call it redacted.com because the report is Unresolved.

Ibrahim Radi (@ibraradi9), on ibraradi.gitbook.io

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

  1. Change between two free themes and observe the request that sets the theme.
  2. Replace the free theme name with a paid theme name and see the change take effect.
  3. Create a paid account and a free account, then compare their index page responses.
  4. Intercept the free user's response and replace every 'Free' value with 'paid'.
  5. Change the feature map values from false to true and from limited access to full access.
  6. 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.

More by Ibrahim Radi

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.