Xtarwall

Leak · API

Limits that live in the browser.

The screen says five a day. The server never counts. Skip the screen and you skip the limit.

The lilac diamond is Xtarwall, striking the API of a short-lived copy. Your real app, on the left, is never the target. The hexagon is the fix it brings back.

Specification

The class, as Xtarwall tests it.

Pattern, signal, proof and fix, then what XShield adds on a live app. This class sits in the proven tier of the benchmark.

  1. Class

    business-logic/quota-bypass

    Area
    Money and business logic
    Impact
    Money
    Tier
    Detected, with a fix, proven by running the attack
    Pattern
    The free-tier limit is enforced from a count the client sends. The server keeps no counter of its own, so paid AI generations run unmetered.
    Signal
    Every call returns 200 while server-side usage passes the free limit.
    Proof
    Four generate calls in a row, each carrying a client-set remaining value. The proof passes when the last one returns 200 and used is above the limit.
    Fix
    Enforce the limit against the server's own usage counter, never a client-supplied value. XGuard re-runs the proof on every push.
    Live, XShield
    The guard does not see this class in a single request. What XShield adds is a decoy route: a path none of your pages link to answers 404 and reports the source that went looking.
class  business-logic/quota-bypass
limit  3 AI generations on the free tier
step 1 POST /api/ai/generate   as alice
       {"prompt":"x","remaining":1000}
step 2 the same request
step 3 the same request
step 4 the same request
pass   status == 200
pass   used > 3
impact run unlimited paid AI generations on a free account
The benchmark recipe for this class, as it runs against our planted test app: fixed requests, then success clauses evaluated on the response to the last step. A recipe exists for a vulnerable case and for nothing else; the safe control has none.

It looks like normal use.

Nothing crashes and nothing turns red, which is why it goes unnoticed.

  • What the leak is

    A usage limit, also called a quota, is the cap a plan puts on use: five exports a day, a hundred messages a month. The leak is a cap that is enforced by the page in the customer's browser, while the server behind it accepts every request it receives.

  • Why it costs you

    Your plans stop meaning anything. Someone on the free plan gets what your paying customers pay for, and every request past the cap still costs you compute, storage or AI usage.

  • How it gets abused

    Whatever runs in a browser is in the visitor's hands. They can send requests to your server without your page in between, and a server that never counted says yes each time.

How Xtarwall proves it

On a safe copy, never on your live app.

A safe copy is a stand-in for your app, started for the test and thrown away after it.

  1. Detect

    Xtarwall looks for limits that the screen enforces and the server does not.

  2. Prove

    On a short-lived safe copy of your app, a test customer on the smallest plan asks the server directly for more than the plan allows. If the copy serves it, the leak is real.

  3. Protect

    You get the fix as a specific change to your code, and a proof you can run again to watch the same attempt fail.

No proof, no alert.

XWatch is free: it finds weak spots and writes the fix. Hosted plans add proof by real attack. How it works

What the fix looks like.

In principle. Xtarwall writes the exact change for your code.

  • Count on the server

    The server decides whether a request fits the plan. The screen shows what the server decided.

  • Count and work in one step

    Update the count in the same step as the work, so two requests sent at once cannot both slip under the cap.

  • Read the plan from your own records

    On each request, look up the customer's plan yourself. Never take it from what the browser says.

Measured, not promised.

Measured on our test suite, 28 Nov 2026. How we measure

83
attack types detected
73
with a ready fix
53
proven by running the real attack
0
false alarms on 17 safe test cases

The other leaks Xtarwall goes looking for.

Find it on a copy, before someone finds it on the real thing.

Start with XWatch. It is free, and it runs on your own AI key.