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.
Published on medium.com
Recently, I was poking around a standard SaaS note-taking product — let’s call it target.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
- Capture a legitimate request for sharing a note with view-only access.
- Modify the permission value from read-only to read-write.
- Send the request and observe a 201 Created response.
- Check the victim account to confirm edit privileges.
- Search the minified JavaScript files to find the internal name for the highest privilege level.
- 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.