JavaScript Paywall at a Major Swiss Media Group — Responsib
The site enforces premium article access with client-side JavaScript, so the paywall can be bypassed by modifying browser state. An attacker could read paywalled content without a subscription.
Published on medium.com
As we have recently demonstrated, there are Websites protected with Paywalls, which are based on Client-sided mechanismns.
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 sends the full premium article and relies on client-side JavaScript to decide whether to display it, instead of checking entitlement on the server.
Impact
Paywalled articles could be read without a subscription, which may reduce conversions and distort analytics; the text does not claim any server-side data breach.
What the attacker needed
A web browser; ability to disable or block scripts
The fix
The paywall should be enforced on the server, serving premium content only after a server-side entitlement check.
How it was found
- Open the affected article page in Firefox.
- Install and enable the NoScript add-on.
- Allow only the scripts necessary for the page to load.
- Observe that the paywalled content becomes visible.
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 paywall is meant to stop people reading premium articles without paying. Here the check happens in the visitor's own browser, which the visitor controls, so it can be switched off. The server still sends the article, and the browser just hides it.
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.