Bug Bounty / Race Condition

Race condition (TOCTOU) in branch creation/activation

By mesalam · December 1, 2026

The platform limits each account to 5 branches. To bypass that limit, my first idea was a race condition (TOCTOU), so I intercepted the branch-creation request: POST /rest-api/v1/branches

Proof of Concept Image

To bypass this limit, my first idea was a race condition (TOCTOU).

So I intercepted the branch-creation request.

POST /rest-api/v1/branches

I created 4 branches, then built a group of 30 requests and sent them in a single packet (single-packet attack).

Proof of Concept Image

But I found a validation on the branch name — two branches can't share the same name — so each of the 30 requests needed a unique name.

Proof of Concept Image

So I repeated the process, this time starting from 3 existing branches

This succeeded — I ended up with more than the allowed number.

Proof of Concept Image

Another problem I couldn't activate all of them, because activating hit the max active-branch limit.


So I applied the same race on the activation endpoint, starting from 3 active branches.

And fired the activation requests as a single-packet attack in Burp Repeater

Proof of Concept Image

I have now managed to create more than the permitted number

Proof of Concept Image

Unfortunately, however, the report was rejected because it was a duplicate