Paywall and Entitlement Bypass

A business logic flaw where plan, tier, credit or quota limits are enforced in the client (UI state, a hidden route, a request flag, an app-side check) rather than by a server-side entitlement check on each request, so a free or limited account gets paid functionality or data.

How it works

Monetisation rules are authorization rules about what you paid for, not who you are. They fail the same way access control does, but scanners and role-based test matrices tend to miss them:

Client-side “control”FailureSource
Request flag the UI never sendsThe backend honours an undocumented boolean without checking credits or tierRed Agent: one boolean
Plan value in a responseThe UI unlocks features based on the plan string in a response, and the direct route has no server checkPremium feature bypass
Advertised quotaA count limit (e.g. 5 items) shown but never enforced server-sidePremium feature bypass
Client-supplied metadataA size limit checked against a declared size field, not the stored bytes$3,500 upload bug
App-side subscription checkMobile app logic decides premium status locally, so instrumentation flips itMobile reverse engineering

Testing heuristics

  • Work from the lowest tier and capture a baseline of what is masked, limited or refused.
  • Mine the frontend bundles for parameters, routes and plan identifiers the free UI never uses. The Wiz agent pulled 100+ endpoint paths and the unused reveal flag out of 130 MB of JS (Red Agent: one boolean, see JavaScript Analysis).
  • Separate cosmetic from real. Response rewriting that only changes the UI proves nothing. The finding is a server action that succeeds for a free account without any modification, reproduced in a clean browser (Premium feature bypass).
  • Exceed every advertised limit (count, size, rate) and confirm on the server what was actually stored or consumed ($3,500 upload bug).
  • For mobile, look for local entitlement checks in decompiled code and confirm the backend re-checks them (Mobile reverse engineering, see Frida).
  • Look for state desync across plan changes: upgrades still processing, downgrades, trials ending (Backend Mastery).

Notable cases

  • A B2B contact-data platform had a masking bypass: one client-controlled flag on a free-tier search returned unmasked contact data for 600M+ profiles (135M+ verified phones) without spending credits. It was fixed in under 2 hours (Red Agent: one boolean).
  • On an AI video platform, a free account reached the premium avatar-creation route directly and exceeded the five-avatar Pro limit (Premium feature bypass).
  • A spoofed upload size field let multi-GB files through a “limited” upload form and exhausted storage. It was chained with stored XSS for $3,500 ($3,500 upload bug).

Defenses

  • Resolve entitlements on the server from the authenticated account on every request and for every record. Never infer them from what the client sends or omits (Red Agent: one boolean).
  • Enforce feature gates and quotas at the API, not the router or UI (Premium feature bypass).
  • Measure resources yourself (bytes stored, items created) rather than trusting declared metadata.
  • Centralise the decision in a policy decision point so plan logic isn’t spread across handlers (Why BAC dominates, see Authorization Policy Engines).

Sources