Skip to content
Race condition Disclosed report Intermediate

[api.krisp.ai] Race condition on /v2/seats endpoint allows bypassing the original seat limit

A race condition on the /v2/seats endpoint let a user exceed the maximum seat limit. An attacker could add more seats than their plan allowed.

alp Follow

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Fixed in 4 months
  • Paid in 3 days
  • Disclosed after 4 months

Summary by the program

Security researcher has found a race condition on one of our endpoints which was effectively bypassing maximum seats limit, We would like to thank @alp for reporting it responsibly to our bug bounty program !

Summary by the researcher

I found a race condition issue at the /v2/seats endpoint. It allowed bypassing maximum seat limit. This issue was fixed by the Krisp team in ASAP. Thank @noisekiller and Krisp team for good work here.

The original report as published on HackerOne, by alp. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The target is the Krisp API host api.krisp.ai, and the feature in question is seat management: the endpoint that assigns seats to users under a plan's seat limit. The researcher, credited as alp, reported a race condition on the /v2/seats endpoint that allowed bypassing the maximum seat limit. The program's own summary describes the finding the same way: a race condition on one of their endpoints that was effectively bypassing the maximum seats limit.

The report is short and does not include the requests the researcher sent, the number of parallel requests used, the seat limit involved, or the responses observed. What it does give is the endpoint path:

HTTP
/v2/seats

In the researcher's words, the issue was found at that endpoint and allowed bypassing the maximum seat limit. The program states that the issue was fixed, and the researcher thanks the Krisp team for their work. It does not state a bounty amount, a CVSS score, or the date of the fix.

Root cause

The report names the bug class directly: a race condition. The likely mechanism, given the endpoint and the outcome, is that the seat limit is checked and then the seat is allocated in separate steps, without the two being atomic with respect to each other. When several seat-assignment requests arrive close together, each one can pass the check against the current seat count before any of them has written the new count, so more seats end up allocated than the plan allows. The report does not describe the server-side implementation, so this is an inference from the bug class and the observed effect, not something the text confirms.

Impact

The impact stated in the report is limited and precise: the maximum seat limit could be bypassed. In practice that means a customer could end up with more active seats than the plan permits, which is a business-logic and licensing problem rather than a direct compromise of other users' data. The report does not claim any further consequence, such as access to another tenant's data or privilege escalation, and none should be assumed.

How this kind of bug works

A race condition appears wherever a decision depends on state that another concurrent request can change between the decision and the action. The classic pattern is read, decide, write: the server reads the current count, compares it with the limit, and then inserts a new record. If two requests interleave so that both read the same count before either writes, both proceed, and the limit is exceeded by one. With enough parallelism the overshoot can be larger.

These bugs are common in endpoints that enforce quotas, limits or uniqueness in application code rather than in the database: seat counts, invitation limits, coupon redemption, withdrawal balances, one-time tokens, vote counts, referral credits. They are easy to miss in manual testing because a single request behaves correctly; the flaw only appears under concurrency.

Defences work by making the check and the write a single atomic operation. Database-level constraints (a unique index, a conditional update such as decrementing a counter only where it is still positive, or a row lock held across the check and the insert) remove the window. Serialisable transactions or an application-level lock around the critical section achieve the same result at a cost. Idempotency keys help with duplicate submissions but do not by themselves fix a check-then-act race.

How to test for it

  1. Identify endpoints that enforce a countable limit: seats, members, invitations, codes, credits, votes, or any resource with a per-account cap. Look for a create or assign operation whose success depends on a current total.
  2. Establish the baseline. With the limit reached, confirm that a single additional request is rejected, and note the exact error response.
  3. Send a burst of the same valid request in parallel, using many connections at once rather than a sequential loop. Tools that fire a group of requests simultaneously, or a script with a barrier so all requests start together, work better than a simple loop.
  4. Compare the resulting state with the limit: count the created resources, or fetch the list endpoint, and see whether more than the allowed number exist.
  5. Repeat with different burst sizes and small timing offsets, since the window may be narrow. A positive result is state that exceeds the limit, not merely several successful HTTP responses.

Common false positives: the server may accept requests and then reconcile them asynchronously, so check the final state rather than the immediate response; a limit may be enforced per time window rather than in total; and cached or eventually consistent list endpoints can briefly show stale counts. Confirm the overshoot through an authoritative read, and keep the evidence: the burst, the responses, and the resulting state.

How it is fixed

Move the enforcement into an atomic operation. Typical fixes are a conditional database update that only succeeds while the count is below the limit, a unique constraint that makes the duplicate insert fail, or a transaction with row-level locking around the check and the write. Where the limit spans multiple records, a counter row updated with a guarded statement is a common approach. After the fix, the same burst should produce exactly one success up to the limit and rejections beyond it, with the final state matching the limit.

Hunting notes

Race conditions hide in business logic: plan and seat management, invitation and referral flows, redemption of single-use codes, balance and credit operations, and anything that enforces a cap the application cares about commercially. Recon signals include endpoints with verbs like assign, invite, redeem, claim or apply, parameters that reference a plan or quota, and error messages that mention limits. Because the flaw is invisible to single requests, prioritise targets where a limit has a clear monetary or access value, and demonstrate impact by showing the state after the burst alongside the expected limit. A clear before-and-after with the parallel requests and the resulting count is what makes a program accept the report.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

Krisp is a software product that, among other things, sells plans with a fixed number of "seats". A seat is simply a slot for one user: if a company buys a plan with a set number of seats, it can add that many people and no more. The feature involved here is seat management, the part of the service that assigns a seat to each user and is supposed to stop once the plan's limit is reached.

The researcher, credited as alp, found that this limit could be exceeded. The problem was on the endpoint /v2/seats on the host api.krisp.ai. An endpoint is a specific address on a server that a program talks to; here it is the address that handles seat assignments. The researcher reported a race condition on that endpoint that allowed bypassing the maximum seat limit. The program's own summary says the same thing: a race condition on one of their endpoints which was effectively bypassing the maximum seats limit.

The report is short. It does not include the requests the researcher sent, how many requests were sent at once, what the seat limit was, or what the server replied. The only technical detail it gives is the endpoint path:

HTTP
/v2/seats

That line is just the path part of the address, the part after the host name. It tells you which feature was affected, not how the attack was carried out.

The program states that the issue was fixed, and the researcher thanks the Krisp team for their work. It does not state a bounty amount, a CVSS score, or the date of the fix.

What a race condition is

A race condition happens when a system makes a decision based on information that can change before the decision is acted on. The report calls this one a race condition: the moment the system checks something and the moment it uses the result of that check are two different moments, and something can slip in between.

An everyday comparison: a venue has one ticket left. Two people ask for it at almost the same instant. The clerk looks at the screen, sees one ticket, and tells both of them yes, because neither sale has been recorded yet when the second person asks. Both get a ticket, and the venue has sold one more than it had.

In software the pattern is usually read, decide, write. The server reads the current number of seats, compares it with the limit, and then creates the new seat. If several requests arrive close together, each one can read the same count before any of them has written the new one, so each one passes the check. The result is more seats than the plan allows. The report does not describe how the server is built, so this is the usual explanation for this kind of bug rather than something the text confirms.

Why it matters

The impact stated in the report is narrow: the maximum seat limit could be bypassed. In practice a customer could end up with more active seats than the plan permits. That is a business and licensing problem, not a direct break-in to other people's data. The report does not claim any further consequence, such as access to another customer's data or extra privileges, and none should be assumed.

In general, how this kind of bug works

Race conditions appear wherever a decision depends on state that another request arriving at the same time can change. They are common in endpoints that enforce quotas or limits in the application's own code rather than in the database: seat counts, invitation limits, coupon redemption, withdrawal balances, one-time tokens, vote counts, referral credits. They are easy to miss in manual testing because a single request behaves correctly; the flaw only shows up when requests overlap.

Defences work by making the check and the write a single indivisible operation. Database-level constraints, such as a unique index, a conditional update that only succeeds while a counter is still positive, or a lock held across the check and the insert, close the window. Transactions that cannot interleave, or an application-level lock around the critical section, achieve the same result at a cost. Idempotency keys help with duplicate submissions but do not by themselves fix a check-then-act race.

In general, how to test for it

  1. Identify endpoints that enforce a countable limit: seats, members, invitations, codes, credits, votes, or any resource with a per-account cap. Look for a create or assign operation whose success depends on a current total.
  2. Establish the baseline. With the limit reached, confirm that a single additional request is rejected, and note the exact error response.
  3. Send a burst of the same valid request in parallel, using many connections at once rather than a sequential loop. Tools that fire a group of requests simultaneously, or a script with a barrier so all requests start together, work better than a simple loop.
  4. Compare the resulting state with the limit: count the created resources, or fetch the list endpoint, and see whether more than the allowed number exist.
  5. Repeat with different burst sizes and small timing offsets, since the window may be narrow. A positive result is state that exceeds the limit, not merely several successful HTTP responses.

Common false positives: the server may accept requests and then reconcile them asynchronously, so check the final state rather than the immediate response; a limit may be enforced per time window rather than in total; and cached or eventually consistent list endpoints can briefly show stale counts. Confirm the overshoot through an authoritative read, and keep the evidence: the burst, the responses, and the resulting state.

In general, how it is fixed

Move the enforcement into an atomic operation. Typical fixes are a conditional database update that only succeeds while the count is below the limit, a unique constraint that makes the duplicate insert fail, or a transaction with row-level locking around the check and the write. Where the limit spans multiple records, a counter row updated with a guarded statement is a common approach. After the fix, the same burst should produce exactly one success up to the limit and rejections beyond it, with the final state matching the limit.

In general, where to look

Race conditions hide in business logic: plan and seat management, invitation and referral flows, redemption of single-use codes, balance and credit operations, and anything that enforces a cap the application cares about commercially. Signals worth watching during recon include endpoints with verbs like assign, invite, redeem, claim or apply, parameters that reference a plan or quota, and error messages that mention limits. Because the flaw is invisible to single requests, prioritise targets where a limit has a clear monetary or access value, and demonstrate impact by showing the state after the burst alongside the expected limit. A clear before-and-after with the parallel requests and the resulting count is what makes a program accept the report.

Glossary

  • Endpoint: a specific address on a server that a program talks to, such as /v2/seats.
  • API: the set of endpoints a service exposes so that other software can talk to it.
  • Seat: a slot for one user under a paid plan; the plan sets how many seats a customer may use.
  • Race condition: a flaw where two actions happening at almost the same time interfere, so the system's decision is based on outdated information.
  • TOCTOU (time-of-check time-of-use): a race condition where the state is checked at one moment and used at another, and can change in between.
  • Atomic: done as a single indivisible step, so nothing else can slip in halfway.
  • Quota: a fixed allowance, such as a maximum number of seats or invitations.
  • Business logic: the rules of a product, such as how many seats a plan includes, as opposed to low-level technical behaviour.
  • Severity: a rating of how serious a bug is.
  • False positive: a result that looks like a bug but is not one.
  • Idempotency key: a value sent with a request so the server can recognise and ignore a duplicate submission.
  • Transaction: a group of database operations that either all succeed or all fail together.
  • Row lock: a database mechanism that stops two operations from changing the same record at the same time.

More by alp

View all

5 more disclosed reports, best first.

More from Krisp

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.