Bypassing AI Quotas: How a Null Value Led to Infinite AI Generation on RebelMouse
The AI generation endpoint trusted a client-supplied organisation identifier to deduct credits, and when that value was empty the billing check was skipped while the request was still processed. An attacker could therefore generate unlimited AI prompts without spending credits, at the company's expense.
Cybersecurity
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.
Context
RebelMouse is a SaaS platform, and the feature in question is its AI generation capability, which the report refers to as the "codex" runs endpoint. Each time a user generates a prompt, the platform pays a downstream AI provider such as OpenAI or Anthropic. To protect those resources, the platform implements billing and quota tracking: credits are deducted per organisation, and a daily credit limit applies.
The report describes a business logic flaw in that quota tracking. By manipulating a single parameter in the JSON payload of the AI generation request, the researcher was able to bypass the paywall and generate AI prompts without any credit being deducted, at the company's expense.

The image is the article header, with the subtitle describing a deep dive into a critical business logic vulnerability that bypassed billing checks and allowed unrestricted AI access.
Setup
The researcher performed a security assessment of RebelMouse. The only tooling mentioned is Burp Suite, specifically its Proxy to capture the request and Repeater to modify and resend it. The report also notes that the captured request could later be loaded into Burp Intruder or driven by a simple Python script.
The precondition for the bypass is an authenticated account on the platform whose daily AI credits have been exhausted. No specific plan, role or version is given.
Finding it
The researcher first used the AI generation feature until the account had used up its daily credits. Attempting to generate a new prompt then returned the expected block:
HTTP/2 402 Payment Required
Content-Type: application/json
{
"error": "Daily credit limit reached",
"dailyRemaining": -208
}
The 402 response shows that the backend checks the quota against the user's organisation. That observation is what prompted the researcher to look at the organisation identifier carried in the request body.
Exploitation
Step 1: Capture the generation request
With Burp Suite proxying traffic, the researcher captured the POST request responsible for AI generation. The vulnerable endpoint was:
/dashboard/api/properties/[PROPERTY_ID]/pages/codex/runs
The original request body looked like this:
{
"prompt": "hi",
"siteId": "pages-[ID].rebelmouse.ai",
"projectName": "[PROJECT_NAME]",
"conversationId": "[CONVERSATION_ID]",
"orgId": "12345-VALID-ORG-ID",
"personalityId": "[PERSONALITY_ID]"
}
The body carries the prompt text, a site identifier, a project name, a conversation identifier, the organisation identifier used for billing, and a personality identifier. The orgId is supplied by the client.
Step 2: Tamper with orgId
The researcher sent the request to Burp Repeater and changed the orgId value to an empty string:
POST /dashboard/api/properties/[PROPERTY_ID]/pages/codex/runs HTTP/2
Host: rebelmouse.ai
Content-Type: application/json
{
"prompt": "hi",
"siteId": "pages-[ID].rebelmouse.ai",
"projectName": "[PROJECT_NAME]",
"conversationId": "[CONVERSATION_ID]",
"orgId": "",
"personalityId": "[PERSONALITY_ID]"
}
Everything else in the payload is unchanged; only the organisation identifier is emptied.
Step 3: Observe the result
With the empty orgId, the billing middleware failed to map the request to a valid entity. Rather than rejecting the request, it forwarded the payload to the AI service, and the prompt was processed:
HTTP/2 200 OK
Content-Type: application/json
{
"runId": "5519",
"conversationId": "[CONVERSATION_ID]"
}
The response is a normal success, returning a run identifier and the conversation identifier, with no payment error.
Step 4: Scale it
Because the request now succeeds without consuming credits, the researcher notes that it can be loaded into Burp Intruder or driven by a simple Python script to generate an unlimited number of AI responses without spending any valid credits.
Root cause
The report frames the flaw as a fail-open design in the quota tracking. A correctly designed authorisation or billing check should be fail-closed: if an unexpected input occurs, such as a missing ID, a database error or a malformed request, the system should block the action by default. Here, the backend relied on a client-supplied orgId to deduct credits, and when it could not parse that value it skipped the billing deduction and processed the AI prompt anyway.
The report classifies the issue as CWE-602, Client-Side Enforcement of Server-Side Security: the value that decides who pays is taken from the request body rather than derived from the authenticated identity. The existing quota check therefore did not stop the attack, because the check depended on the same attacker-controlled field it was meant to enforce.
Impact
The impact is financial loss for the SaaS platform. The report lists two consequences:
- Resource exhaustion. An attacker can script thousands of API calls, consuming backend AI tokens entirely at the company's expense.
- Paywall evasion. Complete circumvention of the platform's monetisation model, allowing malicious actors to use premium services for free.
The researcher demonstrated it after exhausting the daily credits, and the report does not describe behaviour for accounts that still have credits remaining.
Fix
The report does not state which changes RebelMouse made. Its remediation guidance for developers is:
- Never trust client data for billing. Parameters such as
orgIdshould never be accepted from the client request body for authorisation or billing. - Backend extraction. The backend must extract the organisation ID securely from the authenticated user's JWT or session token.
- Strict fail-closed logic. If the billing engine encounters an invalid, missing or empty ID, the API must immediately halt execution and return a 400 Bad Request or 403 Forbidden.
The timeline in the report records discovery and reporting to RebelMouse via Bugcrowd in May 2026, triage and a move to "Waiting for customer" in late May 2026, with the fix date and bounty award left as placeholders.
Variants to test
- Other client-supplied billing identifiers. Look for fields such as organisation, tenant, workspace or account IDs in request bodies on metered endpoints. A positive result is a request that succeeds and returns normal output while the usage dashboard shows no deduction.
- Empty, null and malformed values. Try
"",null, a non-numeric string and a well-formed but non-existent ID in the same field. A positive result is a 200 response with generated content instead of a 400 or 403. - Type confusion. Send the identifier as a number, an array or an object where a string is expected. A positive result is the billing step being skipped while the request is still processed.
- Removing the field entirely. Omit the identifier from the JSON body. A positive result is the same fail-open behaviour as the empty string.
- Identifier belonging to another tenant. Substitute a valid identifier from a different organisation you control. A positive result is the charge landing on the wrong account, which shows the value is trusted rather than derived from the session.
- Other metered features. Apply the same tampering to image generation, transcription, translation or any endpoint that calls a paid downstream provider. A positive result is free usage of a metered service.
What happened, in plain words
RebelMouse is a SaaS platform. SaaS stands for "software as a service": instead of installing a program on your computer, you use a website that someone else runs and pays for. RebelMouse has a feature that generates text with artificial intelligence (AI). You type a prompt, which is just the instruction or question you give the AI, and the platform sends it to an AI provider such as OpenAI or Anthropic and shows you the answer.
That answer is not free for RebelMouse. Every time a user generates a prompt, RebelMouse pays the downstream AI provider. To keep those costs under control, the platform tracks credits: each organisation (a company or group account on the platform) gets a certain number of credits per day, and each generation uses some up. When the daily limit is reached, the platform is supposed to refuse further requests.
Ziad Abdo found a way around that refusal. By changing one value in the request that the browser sends when you ask for an AI generation, he could keep generating prompts after his credits ran out, and RebelMouse paid for every one of them. The report calls this a business logic vulnerability: not a broken lock or a leaked password, but a flaw in the rules the application follows, in this case the rules about who pays.

The image is the article header, with the subtitle describing a deep dive into a critical business logic vulnerability that bypassed billing checks and allowed unrestricted AI access.
The ideas you need first
Before the steps, a few concepts from zero.
API. An API is the set of addresses and rules a website's own pages use to talk to its servers. When you click a button, your browser does not do the work itself; it sends a request to an API address, and the server sends back an answer, usually in a format called JSON. JSON is just text structured with curly brackets, names in quotes and values after a colon, like a labelled form. Think of an API as a restaurant's service counter: you hand over an order slip, the kitchen prepares it, and you get a plate back. You never walk into the kitchen yourself.
Request and response. A request is the message your browser sends: which address, which method (GET to read something, POST to send data and create something), and sometimes a body, which is the JSON form with the details. A response is the message that comes back, starting with a status code. 200 means success, 402 means payment required, 400 means the request was malformed, 403 means forbidden.
Token or session. When you log in, the server gives your browser a token or a session cookie, a long string that proves who you are. Your browser attaches it to every later request, like a wristband at an event: the staff do not ask for your ID again, they just look at the wristband. The server can read the wristband and know which account is asking.
Parameter. A parameter is one named field in a request, for example orgId in the JSON body. It is a labelled box with a value in it.
Quota and paywall. A quota is an allowance, like a monthly data plan on a phone. A paywall is the point where the free allowance ends and the platform says no, or asks for money.
Fail-open and fail-closed. These describe what a system does when something unexpected happens, such as a missing value or a malformed request. Fail-closed means the safe default: if anything is wrong, block the action. Fail-open means the opposite: if anything is wrong, let the action through. A useful comparison is a door. A fail-closed door locks when the power goes out; a fail-open door swings open. For billing and permissions you always want the locked door.
Burp Suite. A tool used by security testers. It sits between your browser and the website, like a postal worker who opens every letter, copies it, and can rewrite it before delivering it. Its Proxy records the requests your browser makes, Repeater lets you edit one request and send it again as many times as you like, and Intruder sends the same request many times with different values automatically.
CWE-602. A catalogue entry for a class of weakness called Client-Side Enforcement of Server-Side Security. In plain terms: the browser (the client) is allowed to decide something that only the server should decide, such as who pays.
Setting up
The researcher performed a security assessment of RebelMouse. The only tool mentioned is Burp Suite, used in two ways: the Proxy to capture the request, and Repeater to change it and send it again. The report also notes that the captured request could later be loaded into Burp Intruder or driven by a simple Python script.
The starting condition is an account on the platform that is logged in and whose daily AI credits have already been used up. The report gives no plan, role or version.
Step 1: Hit the paywall on purpose
The first step is to reach the limit honestly, so you can see what the platform does when it says no. The researcher used the AI generation feature until the account had spent its daily credits. Trying to generate one more prompt then produced this response:
HTTP/2 402 Payment Required
Content-Type: application/json
{
"error": "Daily credit limit reached",
"dailyRemaining": -208
}
Line by line:
HTTP/2 402 Payment Requiredis the status line. HTTP/2 is the version of the protocol used to talk to the server, and 402 is the code meaning payment is required. This is the paywall in action.Content-Type: application/jsonsays the body of the response is JSON, the labelled-form text format.- The body has two fields.
errorcarries the human-readable message "Daily credit limit reached".dailyRemainingis-208, a negative number, which shows the account has gone past its allowance rather than stopping exactly at zero.
Why this step matters: the 402 tells the researcher that the server is checking the quota against the user's organisation. That is the clue that leads to the organisation identifier in the request body.
Step 2: Capture the generation request
With Burp Suite recording traffic, the researcher captured the POST request that the browser sends when you ask for an AI generation. The vulnerable endpoint, meaning the address the request goes to, was:
/dashboard/api/properties/[PROPERTY_ID]/pages/codex/runs
Reading it from left to right: /dashboard/api/ is the part of the site that serves the application's API; properties/[PROPERTY_ID] identifies one property, which is RebelMouse's word for a site or workspace, with the real identifier replaced by a placeholder; pages/codex/runs is the part that starts an AI generation run. The word "codex" is the name the report uses for this AI feature.
The original request body looked like this:
{
"prompt": "hi",
"siteId": "pages-[ID].rebelmouse.ai",
"projectName": "[PROJECT_NAME]",
"conversationId": "[CONVERSATION_ID]",
"orgId": "12345-VALID-ORG-ID",
"personalityId": "[PERSONALITY_ID]"
}
Line by line:
promptis the text the user wants the AI to work on; here it is simplyhi.siteIdidentifies the site the generation belongs to.projectNamenames the project.conversationIdidentifies the conversation, so the AI can keep context between messages.orgIdis the organisation identifier, the value used for billing. In this captured request it is a valid one, shown as12345-VALID-ORG-ID.personalityIdidentifies the AI personality or style being used.
The important observation is that orgId is supplied by the client, meaning it comes from the browser in the request body. The server does not look it up from the session; it reads the value the user sent. That is the door the researcher is about to try.
Step 3: Empty the organisation identifier
The researcher sent the captured request to Burp Repeater and changed the orgId value to an empty string, written "", which is a pair of quotes with nothing between them. Everything else stayed the same:
POST /dashboard/api/properties/[PROPERTY_ID]/pages/codex/runs HTTP/2
Host: rebelmouse.ai
Content-Type: application/json
{
"prompt": "hi",
"siteId": "pages-[ID].rebelmouse.ai",
"projectName": "[PROJECT_NAME]",
"conversationId": "[CONVERSATION_ID]",
"orgId": "",
"personalityId": "[PERSONALITY_ID]"
}
Line by line:
POSTis the method: this request sends data and asks the server to create something, here an AI run.- The path is the same endpoint as before.
HTTP/2is the protocol version.Host: rebelmouse.ainames the server being contacted.Content-Type: application/jsontells the server the body is JSON.- The body is the same form as the captured one, with one difference:
orgIdis now""instead of a valid identifier. The prompt, site, project, conversation and personality are untouched.
Why this step: the 402 showed that billing is tied to the organisation. If the server trusts the orgId from the body, then giving it an empty value may confuse the billing step. The researcher is testing whether the billing check fails safely (blocks the request) or fails open (lets it through).
Step 4: Read the result
With the empty orgId, the billing middleware, the piece of software that sits in front of the AI service and is supposed to deduct credits, could not match the request to a valid organisation. Instead of rejecting the request, it passed the payload on to the AI service, and the prompt was processed:
HTTP/2 200 OK
Content-Type: application/json
{
"runId": "5519",
"conversationId": "[CONVERSATION_ID]"
}
Line by line:
HTTP/2 200 OKis a normal success. There is no 402, no payment error.Content-Type: application/jsonagain says the body is JSON.runIdis the identifier of the generation run that was created; here it is5519.conversationIdis the conversation the run belongs to, the same one as in the request.
The response is a normal success. The AI still answered. The empty value did not stop the request; it skipped the billing step.
Step 5: Do it at scale
Because the request now succeeds without spending credits, the researcher notes that it can be loaded into Burp Intruder or driven by a simple Python script. Intruder repeats one request many times automatically, and a script does the same thing in code. Either way, the result is an unlimited number of AI responses without spending any valid credits, with RebelMouse paying the downstream provider for each one.
Why it worked
The report calls this a fail-open design in the quota tracking. A well-built authorisation or billing check should be fail-closed: if something unexpected happens, such as a missing ID, a database error or a malformed request, the system should block the action by default. Here the backend relied on a client-supplied orgId to deduct credits, and when it could not parse that value it skipped the deduction and processed the AI prompt anyway.
The report classifies the issue as CWE-602, Client-Side Enforcement of Server-Side Security. The value that decides who pays is taken from the request body, which the user controls, rather than derived from the authenticated identity, which the server controls. The quota check therefore did not stop the attack, because the check depended on the same field the attacker could change.
What it means for the business
The impact is financial loss for the SaaS platform. The report lists two consequences:
- Resource exhaustion. An attacker can script thousands of API calls, consuming backend AI tokens entirely at the company's expense.
- Paywall evasion. Complete circumvention of the platform's monetisation model, allowing malicious actors to use premium services for free.
The attack needs a captured generation request. The researcher demonstrated it after the daily credits were used up; the report does not describe what happens for accounts that still have credits left.
How to fix it
The report does not say which changes RebelMouse made. Its guidance for developers is:
- Never trust client data for billing. Parameters such as
orgIdshould never be accepted from the client request body for authorisation or billing. - Backend extraction. The backend must extract the organisation ID securely from the authenticated user's JWT or session token. A JWT is a signed token that the server can verify; the session token is the wristband described earlier. Either way, the server reads the organisation from something it issued and can check, not from the form the user filled in.
- Strict fail-closed logic. If the billing engine encounters an invalid, missing or empty ID, the API must immediately halt execution and return a 400 Bad Request or 403 Forbidden.
The timeline in the report records discovery and reporting to RebelMouse via Bugcrowd in May 2026, triage and a move to "Waiting for customer" in late May 2026, with the fix date and bounty award left as placeholders.
Other places to look for the same mistake
- Other client-supplied billing identifiers. Look for fields such as organisation, tenant, workspace or account IDs in request bodies on metered endpoints. A positive result is a request that succeeds and returns normal output while the usage dashboard shows no deduction.
- Empty, null and malformed values. Try
"",null, a non-numeric string and a well-formed but non-existent ID in the same field. A positive result is a 200 response with generated content instead of a 400 or 403. - Type confusion. Send the identifier as a number, an array or an object where a string is expected. A positive result is the billing step being skipped while the request is still processed.
- Removing the field entirely. Omit the identifier from the JSON body. A positive result is the same fail-open behaviour as the empty string.
- Identifier belonging to another tenant. Substitute a valid identifier from a different organisation you control. A positive result is the charge landing on the wrong account, which shows the value is trusted rather than derived from the session.
- Other metered features. Apply the same tampering to image generation, transcription, translation or any endpoint that calls a paid downstream provider. A positive result is free usage of a metered service.
Glossary
- API: the set of addresses and rules a website's pages use to talk to its servers, sending requests and receiving responses.
- API token: here, the report uses the phrase to mean the paid resource consumed per AI call.
- Authenticated account: an account that has logged in and holds a valid session or token.
- Body: the part of a request or response that carries the data, often in JSON.
- Burp Intruder: a Burp Suite tool that sends the same request many times with varying values automatically.
- Burp Proxy: a Burp Suite tool that sits between browser and server and records the traffic.
- Burp Repeater: a Burp Suite tool that lets you edit a captured request and resend it as often as you like.
- Burp Suite: a toolkit used by security testers to capture, inspect and modify web traffic.
- Business logic vulnerability: a flaw in the rules an application follows, rather than in its technical defences, such as a billing rule that can be skipped.
- Client: the browser or app on the user's side, as opposed to the server.
- Client-side enforcement: a check performed using values the user's side supplies, which the user can therefore change.
- Content-Type: a header that says what format the body is in, for example
application/json. - Credit: an allowance unit that is spent each time a metered feature is used.
- CWE-602: the catalogue entry for Client-Side Enforcement of Server-Side Security, where the client is allowed to decide something only the server should decide.
- Downstream provider: an external service the platform pays to do work, such as OpenAI or Anthropic for AI generation.
- Endpoint: the address of one specific API operation.
- Fail-closed: a design where unexpected input causes the action to be blocked by default.
- Fail-open: a design where unexpected input causes the action to be allowed by default.
- Header: a named line in a request or response carrying metadata, such as
HostorContent-Type. - Host: the header naming the server being contacted.
- HTTP/2: a version of the protocol used for web requests and responses.
- JSON: a text format for structured data using curly brackets, quoted names and values after colons.
- JWT: a signed token the server can verify, often used to carry identity information.
- Middleware: software that sits between the incoming request and the main application, here the billing step in front of the AI service.
- Monetisation model: the way a platform charges for its services.
- Organisation (org): a company or group account on the platform; billing is tracked per organisation.
- Parameter: one named field in a request, such as
orgId. - Paywall: the point where free usage ends and payment is required.
- Payload: the data carried in a request body.
- POST: an HTTP method that sends data and asks the server to create something.
- Prompt: the instruction or question given to an AI.
- Quota: an allowance, such as a number of credits per day.
- Request: the message a browser sends to a server: method, address, headers and sometimes a body.
- Resource exhaustion: using up a service's paid resources, here AI tokens, at the owner's expense.
- Response: the message a server sends back, starting with a status code.
- SaaS: software as a service; software run by a company and used through a website.
- Session cookie: a value stored by the browser that proves the user is logged in.
- Status code: the number at the start of a response, such as 200, 400, 402 or 403.
- Tenant: one separate customer or organisation within a shared platform.
- Token: a string that proves identity or authorises an action.
- Type confusion: sending a value of a different type than expected, such as a number where text is expected.
- 402 Payment Required: the status code meaning payment is needed.
- 400 Bad Request: the status code meaning the request was malformed.
- 403 Forbidden: the status code meaning the request is not allowed.