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
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).
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.
So I repeated the process, this time starting from 3 existing branches
This succeeded — I ended up with more than the allowed number.
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
I have now managed to create more than the permitted number
Unfortunately, however, the report was rejected because it was a duplicate