Skip to content
Business logic Write-up Intermediate

When graphql is present, race condition isn’t the only way to exceed plan limits

The web builder's plan limits on editor users could be exceeded by sending a single GraphQL request that used either array batching or alias batching to change multiple guest users to editor role at once. An attacker could thus add more editors than their plan allowed without needing a race condition.

CANITEY Follow

Published on canitey.medium.com

Hi everyone, Canitey is here again, today I’m sharing with you about how I was able to exceed plan user limits WITHOUT using race conditions by only sending one graphql request.

CANITEY, on canitey.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.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server checked the plan's editor limit per request or per mutation, not across all mutations in a single batched GraphQL request, so batching bypassed the limit.

Impact

An attacker could exceed the plan's editor user limit, potentially gaining more editor accounts than paid for.

What the attacker needed

A workspace on a plan with an editor limit; ability to invite guest users; GraphQL endpoint accepting batched requests

How it was found

  1. Capture a GraphQL request that changes a user's role to editor.
  2. Turn the JSON body into an array containing multiple copies of that request, each for a different user.
  3. Send the batched request and observe that all users become editors.
  4. Alternatively, rewrite the query to use aliases for multiple changeUserRole calls with separate input variables.
  5. Send the aliased query and observe that all users become editors.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A web builder lets you invite people to your workspace. Your plan says only a certain number can be editors. The site used GraphQL, a way for the browser to ask the server for data or changes. GraphQL can accept several requests bundled together in one message. The author bundled many 'make this person an editor' requests into one message, and the server processed them all even though the plan limit should have stopped it.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by CANITEY

View all

3 more disclosed reports, 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.