Skip to content
Business logic Write-up Intermediate

The Business Logic Playbook: 7 Real Bugs, 6 Companies, and 4 Techniques That Actually Work

The article describes several business logic flaws across different platforms, including a missing role field defaulting to highest privilege, a UI-only restriction on changing group privacy, a race condition allowing multiple signups with the same email, and a trial reactivation by swapping a team header. An attacker could bypass plan limits, gain elevated permissions, or reuse one-time entitlements.

0xShawkroot Follow

Published on medium.com

Cybersecurity

0xShawkroot, 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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 12 min read.

Context

This write-up is a methodology piece built from seven reports filed against six companies: a project management tool, a social network, a device-testing platform, a team collaboration tool, a property management tool and an API platform. The author generalises company names, internal identifiers and sensitive details, and states that testing was performed only on authorised accounts within program scope.

The subject is business logic bugs: cases where the application works exactly as coded, every function returns what it should, and there is no crash, injection or memory corruption. What is broken is a real-world rule, such as a limit, a price, a workflow order or a permission, that can be skipped, repeated or reversed in a way the business never intended. Most of these have no CVE, and no CVSS vector fits cleanly.

The features involved are ordinary product surfaces: teammate invitations with role selection, group privacy settings, plan caps on resource creation, account signup and password reset, and free-trial activation for a team.

Setup

The tooling is deliberately minimal:

  1. An intercepting proxy (Burp Suite or any free alternative) to see and edit raw requests.
  2. A "send in parallel" or group-send feature in the proxy, described as the single most important capability for the race-condition technique.
  3. A screen recorder, because a clean before/after video is worth more than ten paragraphs of text for logic bugs.
  4. A notes template recording every limit found, what enforces it, whether removing, flipping or racing it was tested, and the result.

All testing is done on the researcher's own accounts and own data, with screenshots, timestamps and request/response pairs captured at every step. No specific product versions are given.

Finding it

The starting point is a mindset shift. With SSRF you ask who actually makes the HTTP request, the browser or the server. With business logic the question is:

"This screen is telling me 'no.' Who decided that, the interface in front of me, or the server behind it?"

Every app is full of small promises: "you've reached your limit", "this action isn't allowed", "you already used this", "only one of these per account". Each one is a claim to test rather than a wall. A greyed-out button, a disabled checkbox or an error message that only appears in the interface is not proof the rule is enforced; it is a note-to-self for the developer that says "please also check this on the server", and sometimes that check was never written where it matters.

Across the seven reports, the underlying mistake took one of four shapes: a missing field that falls back to a privileged default, a restriction that exists only in the interface, a check-then-write sequence that can be raced, and an entitlement decision based on a value the client controls.

Exploitation

Step 1: The missing piece trick (role field deletion)

A platform's free plan allows only one "full access" teammate. Inviting a second one through the UI returns a clean error that the limit has been reached and the plan should be upgraded. The invite request carries a parameter defining the invited person's role. The move is to delete that parameter completely, not blank it and not set it to null, then resend.

The observed results, as the author records them:

  • Request with the role field present: 403, plan limit reached.
  • Request with the field removed: 200 OK, with "displayName": "Full access".

The backend's default for a missing field was the highest privilege, not the lowest. The developer wrote a check that says "if the requested role is full-access, verify the plan allows it", which is correct for requests that mention a role. Nobody wrote the other half: "and if no role is mentioned at all, assume the safest one". Removing the field skips the entire check, and the server falls back to whatever the first line of code defaults to, which here was the most expensive, most privileged option.

Why this keeps happening: validation is usually written as a list of "if this field says X, then check Y", rarely as "first confirm every required field is present and non-empty, then evaluate them". Missing-field handling is an afterthought almost everywhere.

Step 2: The lock that is only painted on (group privacy)

A settings page lets you manage a group's privacy. A group that is already "Public" has a rule that it cannot be flipped to "Private". The checkbox is disabled in the UI, with a tooltip explaining why, so normal users can never click it.

Instead of clicking, intercept the save request. Find the field representing the privacy flag, something like isPublic: true and isPrivate: false, and flip the values by hand before sending.

  • UI checkbox: disabled, tooltip says "Public groups cannot be made private".
  • Raw request with isPublic set to false and isPrivate set to true, sent directly.
  • Server response: 200 OK. The dashboard then shows the group as Private.

The rule existed exactly once, inside the JavaScript that renders the settings page. The server never re-checked it. Teams build the restriction into the interface because that is where the user interacts with it, then forget that an interface is a suggestion, not a wall.

Step 3: The displayed cap that is never enforced

A close cousin of the previous bug appears on platforms with free-plan limits. One report showed a plan capped at a round number of integrations. The billing page displayed the cap, but the creation endpoint behind it never enforced it. You could keep creating past the limit indefinitely, and the billing counter would freeze at the maximum number while real usage kept climbing underneath, invisible to any dashboard or alert.

The lesson: a number like "3/3 used" or "100/100 integrations" is a claim, not a wall. Try to create one more and watch whether the create action fails, or whether only the dashboard number quietly stops updating.

Step 4: Racing the server (signup with a duplicate email)

Many limits work as three separate steps: check the current count, allow the action if it is under the limit, then update the count. Fire several requests at the same moment and each can reach the check before any of them finishes the update. They all see the same outdated number and all get approved. This is a TOCTOU (Time-Of-Check to Time-Of-Use) race condition. You do not need to be fast by human standards, only to fire many requests in the same millisecond, which most modern proxies support.

The author's favourite instance involved signup. Several signup requests were sent at once with different usernames but the same email address. The server returned an honest-looking 400 Bad Request. Except the username behind that "failed" request was now permanently taken: running a password reset on it worked, setting a new password worked, and logging in with it worked. A completely normal, fully functional account had been created by a request the server itself reported as a failure.

A race condition does not look dangerous in a screenshot; it looks like "I sent some requests at once and got lucky". The skill is recognising which checks are likely written as separate check-then-write steps rather than one atomic step. Ask whether the feature enforces a count or a unique state (a maximum number, a "must have at least one of X", a "can only happen once"). If yes, and the action that changes the count is a separate request from whatever checks it, capture that request, send it around ten times in parallel, and read every response, not just the first.

Step 5: Borrowing a different identity (trial reactivation)

A platform gives every team exactly one free trial of its top-tier plan. Once used, the option disappears from the interface entirely after a team's trial has been manually closed out. The request that starts a trial includes a header identifying which team the trial is for, plus a short identifier string naming which specific trial offer is being activated.

Replay the "start trial" request, swapping only the team-identifying header to point at a team whose trial had already been closed and reset to the free plan. The request succeeded, and a brand-new trial period with a real start and end date was handed to a team the system had already marked as ineligible.

A second layer: when one specific trial identifier string was blocked after repeated use, changing that string to a different, still-valid trial identifier bypassed the block completely. The restriction lived on the exact text of the identifier, not on the team's real entitlement history. Rotate the string and the block evaporates.

Step 6: Turning "weird" into "dangerous"

A business logic bug rarely looks scary on its own. "I made the trial start again" sounds like a shrug. The reviewer's first instinct is always to ask what an attacker can actually do that they were not already allowed to do. The reframe that works is to stop writing "I did X to my own account" and start writing "any account, anywhere on this platform, can repeat this indefinitely, and here is what that costs the business". The bug is the same; the story around it changes minds. If honestly true, include the words "repeatable" and "scale" in the impact section: a one-time quirk gets dismissed, a loop that can run forever, automated, across every account, gets attention.

Step 7: Handling the program's replies

  • Not Applicable: usually means the reviewer saw no attacker-versus-victim story, just you doing something to your own data. Do not repeat the steps louder; rewrite the impact section to separate "this is not self-impact, this is bypassing a server-side limit that exists to protect revenue" from what the reviewer assumed.
  • Duplicate: common because the same obvious tests occur to many hunters on day one. Document your exact timestamp; if the original is later accepted as a real risk, you will usually still get credit once it resolves.
  • Informative: means "we believe you, we just don't think it matters enough". The fix is to show scale and repeatability you did not show the first time: a second video proving indefinite repetition, a clearer line to financial cost, or evidence that the "intended" behaviour does not match the restriction shown to normal users.
  • "This is the authorised owner acting on their own team": this objection came up on the trial-reactivation bug. The answer that worked was to stop arguing it is an access-control bug and reframe it as a billing and entitlement logic bug: "I don't need anyone else's session. Any owner of any team can do this, forever, and that alone breaks the one-trial-per-team policy at scale." Agreeing with the reviewer's narrow point while re-centring the actual risk moved the report from "needs more info", twice, to triaged and rewarded.

That report took three rounds of back-and-forth, a dedicated proof-of-concept video showing the exploit repeating with a rotated identifier, and nearly a month of waiting before it was validated, escalated to engineering and paid.

Root cause

The common thread is that the rule lives in the wrong place. In the role case, the server validates only requests that name a role, and the default for an absent field is the most privileged value. In the privacy case, the restriction exists only in the JavaScript that renders the settings page, and the server never re-checks it. In the cap case, the limit is displayed but the creation endpoint never enforces it. In the race case, the count check and the count update are separate steps rather than one atomic operation, so concurrent requests all pass the check. In the trial case, the "has this entity already used it?" decision depends on a client-supplied team header and a trial identifier string, rather than on a server-side lookup permanently marked against the team.

In each case the defence was either absent, placed in the interface rather than the server, or written only for the requests that named the field.

Impact

  • Role deletion: a free-plan account obtains a second full-access teammate, bypassing the plan limit that exists to protect revenue.
  • Privacy flip: a group that the product promises can never be made private becomes private, contradicting the rule shown to every user.
  • Unenforced cap: an account can create resources past the plan cap indefinitely, with the billing counter frozen and real usage invisible to dashboards and alerts.
  • Signup race: an account is created by a request the server reports as failed, and that username is then fully usable, including password reset and login.
  • Trial reactivation: any owner of any team can reactivate a trial the system has marked ineligible, forever, breaking the one-trial-per-team policy at scale. Rotating the trial identifier also defeats the block placed on a specific identifier.

The author is explicit that these bugs do not look dangerous in isolation and that impact depends on framing them as repeatable and scalable across accounts.

Fix

The report does not state what any company changed. The implied fixes, from the described root causes, are:

  1. Validate that every required field is present and non-empty before evaluating values, and default missing fields to the least privileged option.
  2. Enforce every restriction server-side, not only in the interface, and re-check it on the endpoint that performs the action.
  3. Make count checks and count updates atomic, for example with a single conditional write or a lock, so concurrent requests cannot all pass the check.
  4. Derive entitlement decisions from server-side records tied permanently to the entity, not from client-supplied headers or identifier strings, and bind blocks to the entity's history rather than to the text of an identifier.

Variants to test

  1. Delete a field entirely on any request that sets a role, plan tier, permission level, price or limit. A positive result is a 200 where the field-present request returned 403, with the response showing a privileged default.
  2. Flip a UI-locked flag on any disabled checkbox, greyed-out button or locked toggle. A positive result is a 200 and the dashboard reflecting the forbidden state.
  3. Exceed a displayed cap by one or more resources. A positive result is successful creation while the counter freezes at the maximum.
  4. Race a count or uniqueness check (seats, owners, invites, registrations, signup with a duplicate email) by sending 8 to 15 parallel copies. A positive result is more resources than the limit, or a usable account created by a request reported as failed.
  5. Swap or rotate the value that gates a one-time entitlement (trial, discount, referral, bonus): a team header, an offer identifier, a code. A positive result is a fresh entitlement for an entity already marked ineligible, or a block bypassed by changing the identifier string.
  6. Re-read every response in a parallel batch, not just the first, since a failure status can hide a successful side effect.

A simple parallel-request idea from the report, to adapt to your tool of choice:

Text
requests = [captured_request] * 10send_all_at_once(requests) for response in responses:print(response.status_code, response.body)

Lessons

More than half of the seven reports were closed on the first pass, not because the bug was not real but because the first version of the story did not land. The ones reopened or escalated shared a second message that separated "what I literally did" from "what any attacker could repeat, forever, at scale". Race conditions are the easiest to prove and the easiest to get dismissed: always pair the raw mechanic with the business consequence, such as direct revenue bypass, a permanently un-administered resource, or abuse that can be scripted and scaled. If a program says a missing enforcement is an intentional "soft limit", that is a legitimate business decision and a fair closure; it still belongs in your methodology notes for the next program that did not make the same choice.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 18 min read.

What happened, in plain words

This is a story about a kind of security bug that has nothing to do with clever code tricks. The author filed seven bug reports against six different companies: a project management tool, a social network, a device-testing platform, a team collaboration tool, a property management tool and an API platform. In every case the application was working exactly as it was written. Nothing crashed. Nothing was injected. No memory was corrupted. What was broken was a rule: a limit, a price, a workflow order or a permission that could be skipped, repeated or reversed in a way the business never intended.

These bugs are called business logic bugs. The name is the whole idea: the logic of the business (one free trial per team, one full-access teammate on the free plan, a public group can never become private) is the thing that fails, not the code that runs the buttons.

Most of these bugs have no CVE and no CVSS score that fits cleanly. A CVE is a public catalogue number for a known software vulnerability, like a registration plate for a flaw. Business logic bugs often fall outside both, because nothing in the software is technically defective. That is exactly why many hunters skip this category, and exactly why it is one of the most underrated skills you can build.

The features involved are ordinary things you have used on any website: inviting a teammate and choosing their role, changing a group's privacy setting, a plan cap on how many things you can create, signing up for an account and resetting a password, and starting a free trial for a team.

The author generalises company names, internal identifiers and sensitive details, and states that all testing was done on authorised accounts within the scope of each bug bounty program. A bug bounty program is a scheme where a company invites outside researchers to test its systems and pays for real problems found, under rules that say what is allowed.

Setup

You do not need exotic tools for this. The author's kit is deliberately small.

  1. An intercepting proxy. A proxy sits between your browser and the website and lets you see and edit the raw messages going back and forth. Burp Suite is the best-known one, and free alternatives exist. This is the whole job: see the request, change it, send it again.
  2. A "send in parallel" or group-send feature in the proxy. This fires many copies of a request at the same instant. The author calls it the single most important capability for the race-condition technique, which we will meet later.
  3. A screen recorder. For logic bugs, a clean before-and-after video is worth more than ten paragraphs of text, because programs trust what they can watch happen.
  4. A simple notes template. For every limit you find, record what enforces it, whether you tested removing it, flipping it or racing it, and what the result was. Reuse the template on every new program.

All testing is done on the researcher's own accounts and own data, with screenshots, timestamps and request/response pairs captured at every step. No specific product versions are given.

A quick word on two terms you will meet constantly. An API (Application Programming Interface) is the set of doors a website's own pages knock on to get things done. When you click a button, your browser does not usually do the work itself; it sends a message to the company's server, and the server does the work and answers. A request is that message. A response is the answer. An intercepting proxy lets you stand between the two and rewrite the message before it leaves.

Finding it

The starting point is a change of mindset. With a bug class like SSRF (Server-Side Request Forgery, where you trick a server into fetching a URL of your choosing), you ask: who actually makes this HTTP request, my browser or the server? With business logic, the golden question is different:

"This screen is telling me 'no.' Who decided that, the interface in front of me, or the server behind it?"

Every app is full of small promises: "you've reached your limit", "this action isn't allowed", "you already used this", "only one of these per account". Each one is a claim to test, not a wall. A greyed-out button, a disabled checkbox or an error message that only appears in the interface is not proof the rule is enforced. It is a note-to-self for the developer that says "please also check this on the server", and sometimes that check was never written where it matters.

Across the seven reports, the underlying mistake took one of four shapes: a missing field that falls back to a privileged default, a restriction that exists only in the interface, a check-then-write sequence that can be raced, and an entitlement decision based on a value the client controls. We will go through each in turn.

Exploitation

Step 1: The missing piece trick (role field deletion)

A platform's free plan allows only one "full access" teammate. Inviting a second one through the UI returns a clean error that the limit has been reached and the plan should be upgraded. Fair enough.

The invite request carries a parameter defining the invited person's role. A parameter (or field) is one named piece of information inside a request, like a line on a form: role=member, email=..., plan=free. The move here is to delete that parameter completely, not blank it and not set it to null, then resend.

The observed results, as the author records them:

  • Request with the role field present: 403, plan limit reached.
  • Request with the field removed: 200 OK, with "displayName": "Full access".

A 403 is the HTTP status code for "forbidden": the server understood you and refused. A 200 is "OK": the server did what you asked. Seeing a 403 turn into a 200 by removing information is the whole trick.

The backend's default for a missing field was the highest privilege, not the lowest. The developer wrote a check that says "if the requested role is full-access, verify the plan allows it", which is correct for requests that mention a role. Nobody wrote the other half: "and if no role is mentioned at all, assume the safest one". Removing the field skips the entire check, and the server falls back to whatever the first line of code defaults to, which here was the most expensive, most privileged option.

Why this keeps happening: validation is usually written as a list of "if this field says X, then check Y", rarely as "first confirm every required field is present and non-empty, then evaluate them". Missing-field handling is an afterthought almost everywhere.

Step 2: The lock that is only painted on (group privacy)

A settings page lets you manage a group's privacy. A group that is already "Public" has a rule that it cannot be flipped to "Private". The checkbox is disabled in the UI, with a tooltip explaining why, so normal users can never click it.

Instead of clicking, intercept the save request. Find the field representing the privacy flag, something like isPublic: true and isPrivate: false, and flip the values by hand before sending.

  • UI checkbox: disabled, tooltip says "Public groups cannot be made private".
  • Raw request with isPublic set to false and isPrivate set to true, sent directly.
  • Server response: 200 OK. The dashboard then shows the group as Private.

The rule existed exactly once, inside the JavaScript that renders the settings page. JavaScript is the code that runs inside your browser and makes pages interactive; it draws the checkbox and decides whether it can be clicked. The server never re-checked the rule. Teams build the restriction into the interface because that is where the user interacts with it, then forget that an interface is a suggestion, not a wall. Think of a nightclub with a sign saying "members only" but no doorman: the sign is real, the enforcement is not.

Step 3: The displayed cap that is never enforced

A close cousin of the previous bug appears on platforms with free-plan limits. One report showed a plan capped at a round number of integrations. An integration here is a connection between the platform and another service. The billing page displayed the cap, but the creation endpoint behind it never enforced it. An endpoint is one specific address on the server that performs one specific action, such as "create an integration".

You could keep creating past the limit indefinitely, and the billing counter would freeze at the maximum number while real usage kept climbing underneath, invisible to any dashboard or alert. The lesson: a number like "3/3 used" or "100/100 integrations" is a claim, not a wall. Try to create one more and watch whether the create action fails, or whether only the dashboard number quietly stops updating.

Step 4: Racing the server (signup with a duplicate email)

Many limits work as three separate steps: check the current count, allow the action if it is under the limit, then update the count. Fire several requests at the same moment and each can reach the check before any of them finishes the update. They all see the same outdated number and all get approved. This is a race condition, and more specifically a TOCTOU bug: Time-Of-Check to Time-Of-Use. The check and the use are separated by just enough time for chaos to sneak in.

An everyday comparison: two people arrive at the last seat on a train at the same moment, both look at the seat map, both see it free, both sit down. Neither did anything wrong; the map was simply read before either of them wrote to it. You do not need to be fast by human standards, only to fire many requests in the same millisecond, which most modern proxies support.

The author's favourite instance involved signup. Several signup requests were sent at once with different usernames but the same email address. The server returned an honest-looking 400 Bad Request. A 400 means "bad request": the server is saying your message was malformed or unacceptable. Except the username behind that "failed" request was now permanently taken: running a password reset on it worked, setting a new password worked, and logging in with it worked. A completely normal, fully functional account had been created by a request the server itself reported as a failure.

A race condition does not look dangerous in a screenshot; it looks like "I sent some requests at once and got lucky". The skill is recognising which checks are likely written as separate check-then-write steps rather than one atomic step. Atomic means all-or-nothing, like a single database operation that either fully happens or does not happen at all. Ask whether the feature enforces a count or a unique state (a maximum number, a "must have at least one of X", a "can only happen once"). If yes, and the action that changes the count is a separate request from whatever checks it, capture that request, send it around ten times in parallel, and read every response, not just the first.

Step 5: Borrowing a different identity (trial reactivation)

A platform gives every team exactly one free trial of its top-tier plan. Once used, the option disappears from the interface entirely after a team's trial has been manually closed out. The request that starts a trial includes a header identifying which team the trial is for, plus a short identifier string naming which specific trial offer is being activated. A header is a labelled line attached to a request, like the address block on an envelope; the body is the letter inside.

Replay the "start trial" request, swapping only the team-identifying header to point at a team whose trial had already been closed and reset to the free plan. The request succeeded, and a brand-new trial period with a real start and end date was handed to a team the system had already marked as ineligible.

A second layer: when one specific trial identifier string was blocked after repeated use, changing that string to a different, still-valid trial identifier bypassed the block completely. The restriction lived on the exact text of the identifier, not on the team's real entitlement history. Rotate the string and the block evaporates. An entitlement is simply what an account is allowed to use: which plan, which features, which freebies.

Step 6: Turning "weird" into "dangerous"

A business logic bug rarely looks scary on its own. "I made the trial start again" sounds like a shrug. The reviewer's first instinct is always to ask what an attacker can actually do that they were not already allowed to do. The reframe that works is to stop writing "I did X to my own account" and start writing "any account, anywhere on this platform, can repeat this indefinitely, and here is what that costs the business". The bug is the same; the story around it changes minds. If honestly true, include the words "repeatable" and "scale" in the impact section: a one-time quirk gets dismissed, a loop that can run forever, automated, across every account, gets attention.

Step 7: Handling the program's replies

  • Not Applicable: usually means the reviewer saw no attacker-versus-victim story, just you doing something to your own data. Do not repeat the steps louder; rewrite the impact section to separate "this is not self-impact, this is bypassing a server-side limit that exists to protect revenue" from what the reviewer assumed.
  • Duplicate: common because the same obvious tests occur to many hunters on day one. Document your exact timestamp; if the original is later accepted as a real risk, you will usually still get credit once it resolves.
  • Informative: means "we believe you, we just don't think it matters enough". The fix is to show scale and repeatability you did not show the first time: a second video proving indefinite repetition, a clearer line to financial cost, or evidence that the "intended" behaviour does not match the restriction shown to normal users.
  • "This is the authorised owner acting on their own team": this objection came up on the trial-reactivation bug. The answer that worked was to stop arguing it is an access-control bug and reframe it as a billing and entitlement logic bug: "I don't need anyone else's session. Any owner of any team can do this, forever, and that alone breaks the one-trial-per-team policy at scale." Agreeing with the reviewer's narrow point while re-centring the actual risk moved the report from "needs more info", twice, to triaged and rewarded. Triaged means the program has accepted the report as a real issue and put it in its queue.

That report took three rounds of back-and-forth, a dedicated proof-of-concept video showing the exploit repeating with a rotated identifier, and nearly a month of waiting before it was validated, escalated to engineering and paid.

Root cause

The common thread is that the rule lives in the wrong place. In the role case, the server validates only requests that name a role, and the default for an absent field is the most privileged value. In the privacy case, the restriction exists only in the JavaScript that renders the settings page, and the server never re-checks it. In the cap case, the limit is displayed but the creation endpoint never enforces it. In the race case, the count check and the count update are separate steps rather than one atomic operation, so concurrent requests all pass the check. In the trial case, the "has this entity already used it?" decision depends on a client-supplied team header and a trial identifier string, rather than on a server-side lookup permanently marked against the team.

In each case the defence was either absent, placed in the interface rather than the server, or written only for the requests that named the field.

Impact

  • Role deletion: a free-plan account obtains a second full-access teammate, bypassing the plan limit that exists to protect revenue.
  • Privacy flip: a group that the product promises can never be made private becomes private, contradicting the rule shown to every user.
  • Unenforced cap: an account can create resources past the plan cap indefinitely, with the billing counter frozen and real usage invisible to dashboards and alerts.
  • Signup race: an account is created by a request the server reports as failed, and that username is then fully usable, including password reset and login.
  • Trial reactivation: any owner of any team can reactivate a trial the system has marked ineligible, forever, breaking the one-trial-per-team policy at scale. Rotating the trial identifier also defeats the block placed on a specific identifier.

The author is explicit that these bugs do not look dangerous in isolation and that impact depends on framing them as repeatable and scalable across accounts.

Fix

The report does not state what any company changed. The implied fixes, from the described root causes, are:

  1. Validate that every required field is present and non-empty before evaluating values, and default missing fields to the least privileged option.
  2. Enforce every restriction server-side, not only in the interface, and re-check it on the endpoint that performs the action.
  3. Make count checks and count updates atomic, for example with a single conditional write or a lock, so concurrent requests cannot all pass the check.
  4. Derive entitlement decisions from server-side records tied permanently to the entity, not from client-supplied headers or identifier strings, and bind blocks to the entity's history rather than to the text of an identifier.

Variants to test

  1. Delete a field entirely on any request that sets a role, plan tier, permission level, price or limit. A positive result is a 200 where the field-present request returned 403, with the response showing a privileged default.
  2. Flip a UI-locked flag on any disabled checkbox, greyed-out button or locked toggle. A positive result is a 200 and the dashboard reflecting the forbidden state.
  3. Exceed a displayed cap by one or more resources. A positive result is successful creation while the counter freezes at the maximum.
  4. Race a count or uniqueness check (seats, owners, invites, registrations, signup with a duplicate email) by sending 8 to 15 parallel copies. A positive result is more resources than the limit, or a usable account created by a request reported as failed.
  5. Swap or rotate the value that gates a one-time entitlement (trial, discount, referral, bonus): a team header, an offer identifier, a code. A positive result is a fresh entitlement for an entity already marked ineligible, or a block bypassed by changing the identifier string.
  6. Re-read every response in a parallel batch, not just the first, since a failure status can hide a successful side effect.

A simple parallel-request idea from the report, to adapt to your tool of choice:

Text
requests = [captured_request] * 10send_all_at_once(requests) for response in responses:print(response.status_code, response.body)

Line by line, in plain words:

  • requests = [captured_request] * 10 builds a list containing ten copies of one request you captured earlier. captured_request is the request you saved from your proxy; the * 10 repeats it ten times.
  • send_all_at_once(requests) is pseudocode for "fire every request in this list at the same instant". Your proxy's group-send feature does this for you; the line is a stand-in for that button.
  • for response in responses: walks through each answer that came back, one at a time.
  • print(response.status_code, response.body) prints the status code (the 200, 400, 403 number) and the body (the content of the answer) for each one, so you can read every reply rather than only the first.

Lessons

More than half of the seven reports were closed on the first pass, not because the bug was not real but because the first version of the story did not land. The ones reopened or escalated shared a second message that separated "what I literally did" from "what any attacker could repeat, forever, at scale". Race conditions are the easiest to prove and the easiest to get dismissed: always pair the raw mechanic with the business consequence, such as direct revenue bypass, a permanently un-administered resource, or abuse that can be scripted and scaled. If a program says a missing enforcement is an intentional "soft limit", that is a legitimate business decision and a fair closure; it still belongs in your methodology notes for the next program that did not make the same choice.

Glossary

  • API: the set of addresses and rules a website's own pages use to ask its server to do things; the server does the work and answers.
  • Atomic: all-or-nothing; an operation that either fully happens or does not happen at all, with no in-between state.
  • Bug bounty program: a scheme where a company invites outside researchers to test its systems and pays for real problems found, under published rules.
  • Business logic bug: a flaw where the software works as coded but a real-world rule (a limit, a price, a workflow order, a permission) can be skipped, repeated or reversed.
  • Burp Suite: a well-known intercepting proxy used to view and edit requests between a browser and a server.
  • CVE: a public catalogue number for a known software vulnerability.
  • CVSS: a scoring system from 0 to 10 that tries to express how severe a vulnerability is.
  • Endpoint: one specific address on a server that performs one specific action.
  • Entitlement: what an account is allowed to use, such as a plan, a feature or a free trial.
  • Header: a labelled line attached to a request or response, like the address block on an envelope.
  • Integration: a connection between one platform and another service.
  • Intercepting proxy: a tool that sits between your browser and a website so you can see and edit the raw messages.
  • JavaScript: code that runs inside your browser and makes pages interactive, including drawing checkboxes and deciding whether they can be clicked.
  • Parameter (field): one named piece of information inside a request, like a line on a form.
  • Race condition: a bug where several actions happening at the same moment interfere, because a check and an update are separate steps.
  • Request: the message your browser sends to a server asking it to do something.
  • Response: the answer a server sends back.
  • SSRF: Server-Side Request Forgery; tricking a server into fetching a URL of your choosing.
  • Status code: the three-digit number in a response saying what happened, such as 200 (OK), 400 (bad request) or 403 (forbidden).
  • TOCTOU: Time-Of-Check to Time-Of-Use; a race condition where the state changes between the check and the use.
  • Triaged: accepted by the program as a real issue and placed in its queue.

More by 0xShawkroot

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.