Skip to content
Business logic Write-up Beginner

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.

CyberCitizen Follow

Published on medium.com

As we have recently demonstrated, there are Websites protected with Paywalls, which are based on Client-sided mechanismns.

CyberCitizen, 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

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

  1. Open the affected article page in Firefox.
  2. Install and enable the NoScript add-on.
  3. Allow only the scripts necessary for the page to load.
  4. 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.

More by CyberCitizen

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.