# 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" | Failure | Source | |---|---|---| | Request flag the UI never sends | The backend honours an undocumented boolean without checking credits or tier | [[raw/wiz.io/the-red-agent-pov-the-one-boolean-that-broke-a-b2b-platform-s-credit-s-10448\|Red Agent: one boolean]] | | Plan value in a response | The UI unlocks features based on the plan string in a response, and the direct route has no server check | [[raw/medium.com/broken-access-control-via-direct-url-navigation-bypassing-premium-feat-12805\|Premium feature bypass]] | | Advertised quota | A count limit (e.g. 5 items) shown but never enforced server-side | [[raw/medium.com/broken-access-control-via-direct-url-navigation-bypassing-premium-feat-12805\|Premium feature bypass]] | | Client-supplied metadata | A size limit checked against a declared size field, not the stored bytes | [[raw/infosecwriteups.com/how-i-found-a-bug-worth-3-500-in-a-feature-nobody-was-watching-10788\|$3,500 upload bug]] | | App-side subscription check | Mobile app logic decides premium status locally, so instrumentation flips it | [[raw/iteratorshq.com/understanding-mobile-app-reverse-engineering-how-attackers-break-apps-3736\|Mobile reverse engineering]] | - API documentation phrases like "only use feature X for Y" or "only admins should do X" describe a control. Test whether the control exists, because the vulnerability comes from assuming API consumers follow directions ([[raw/medium.com/api-exploitation-for-bug-bounty-3708|API Exploitation for Bug Bounty]]). - A request either matches a valid server-side entitlement or it doesn't. Nothing in it looks malformed, which is why SAST and DAST miss it ([[raw/wiz.io/the-red-agent-pov-the-one-boolean-that-broke-a-b2b-platform-s-credit-s-10448|Red Agent: one boolean]], [[raw/auth0.com/why-broken-access-control-dominates-owasp-top-10-in-2026-3693|Why BAC dominates]]). - Writable plan, credit or balance fields are the [[Mass Assignment]] form of this flaw ([[raw/tib3rius.com/web-appsec-interview-questions-5906|Web AppSec Interview Questions]]). ## 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 ([[raw/wiz.io/the-red-agent-pov-the-one-boolean-that-broke-a-b2b-platform-s-credit-s-10448|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 ([[raw/medium.com/broken-access-control-via-direct-url-navigation-bypassing-premium-feat-12805|Premium feature bypass]]). - Exceed every advertised limit (count, size, rate) and confirm on the server what was actually stored or consumed ([[raw/infosecwriteups.com/how-i-found-a-bug-worth-3-500-in-a-feature-nobody-was-watching-10788|$3,500 upload bug]]). - For mobile, look for local entitlement checks in decompiled code and confirm the backend re-checks them ([[raw/iteratorshq.com/understanding-mobile-app-reverse-engineering-how-attackers-break-apps-3736|Mobile reverse engineering]], see [[Frida]]). - Look for state desync across plan changes: upgrades still processing, downgrades, trials ending ([[raw/medium.com/backend-mastery-the-real-bug-bounty-superpower-2026-3601|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 ([[raw/wiz.io/the-red-agent-pov-the-one-boolean-that-broke-a-b2b-platform-s-credit-s-10448|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 ([[raw/medium.com/broken-access-control-via-direct-url-navigation-bypassing-premium-feat-12805|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 ([[raw/infosecwriteups.com/how-i-found-a-bug-worth-3-500-in-a-feature-nobody-was-watching-10788|$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 ([[raw/wiz.io/the-red-agent-pov-the-one-boolean-that-broke-a-b2b-platform-s-credit-s-10448|Red Agent: one boolean]]). - Enforce feature gates and quotas at the API, not the router or UI ([[raw/medium.com/broken-access-control-via-direct-url-navigation-bypassing-premium-feat-12805|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 ([[raw/auth0.com/why-broken-access-control-dominates-owasp-top-10-in-2026-3693|Why BAC dominates]], see [[Authorization Policy Engines]]). ## Related - [[Business Logic Vulnerabilities]] (main guide) - [[Price and Quantity Manipulation]] · [[Workflow and State Bypass]] · [[Coupon and Reward Abuse]] - [[Broken Access Control]] · [[Function Level Authorization]] · [[Mass Assignment]] · [[Excessive Data Exposure]] · [[Unrestricted File Upload]] ## Sources - [[raw/wiz.io/the-red-agent-pov-the-one-boolean-that-broke-a-b2b-platform-s-credit-s-10448|The Red Agent POV: The One Boolean That Broke a B2B Platform's Credit System]] - [[raw/medium.com/broken-access-control-via-direct-url-navigation-bypassing-premium-feat-12805|Broken Access Control via Direct URL Navigation: Bypassing Premium Feature Restrictions]] - [[raw/infosecwriteups.com/how-i-found-a-bug-worth-3-500-in-a-feature-nobody-was-watching-10788|How I Found a Bug Worth $3,500 — In a Feature Nobody Was Watching]] - [[raw/iteratorshq.com/understanding-mobile-app-reverse-engineering-how-attackers-break-apps-3736|Understanding Mobile App Reverse Engineering]] - [[raw/medium.com/api-exploitation-for-bug-bounty-3708|API Exploitation For Bug Bounty]] - [[raw/auth0.com/why-broken-access-control-dominates-owasp-top-10-in-2026-3693|Why Broken Access Control Dominates OWASP Top 10 in 2026]] - [[raw/tib3rius.com/web-appsec-interview-questions-5906|Web AppSec Interview Questions]] - [[raw/medium.com/backend-mastery-the-real-bug-bounty-superpower-2026-3601|Backend Mastery: The Real Bug Bounty Superpower (2026)]]