Skip to content
Business logic Write-up Beginner

Paywall Bypass: How Client-Side Trust Led to a Free Premium Upgrade

The application allowed free-tier users to set a note-sharing permission to a paid level by modifying the permission value in the API request. An attacker could grant themselves or others edit or co-owner access without paying.

default_0x Follow

Published on medium.com

Recently, I was poking around a standard SaaS note-taking product — let’s call it target.com.

default_0x, on medium.com

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 backend trusted the client-supplied permission value without checking whether the user's subscription allowed that level.

Impact

An attacker could grant themselves or others paid permission levels (edit or co-owner) without a subscription, potentially leading to unauthorised access to shared notes.

What the attacker needed

A free account; ability to intercept and modify requests

How it was found

  1. Capture a legitimate request for sharing a note with view-only access.
  2. Modify the permission value from read-only to read-write.
  3. Send the request and observe a 201 Created response.
  4. Check the victim account to confirm edit privileges.
  5. Search the minified JavaScript files to find the internal name for the highest privilege level.
  6. Use the discovered value to grant co-owner access.

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 lets you share notes with different permission levels, but some levels are supposed to be paid. The server trusted whatever permission level the browser sent, so a user could change it to a higher level and get paid features for free.

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 default_0x

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.