Bypassing Payment Billing to Assign Admin Role via Business Logic
The backend accepted role-change requests without checking whether the requested role required a paid subscription, with the payment check only enforced in the frontend. An attacker could upgrade a workspace member to Admin without paying the $500 annual fee.
Published 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.
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
The backend trusted the frontend to enforce the paid-role restriction and did not validate the requested role against the workspace's billing status.
Impact
A workspace member could be granted the Admin role without paying the required $500 annual fee, giving them elevated privileges they should not have.
What the attacker needed
A workspace account; ability to invite members; ability to send modified requests
How it was found
- Capture the request used to change a member's role.
- Modify the role value from Commenter to Admin.
- Send the modified request.
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 website has two parts: the frontend (what you see in the browser) and the backend (the server that actually saves changes). Here, the frontend hid the paid Admin option, but the backend still accepted a request to set someone as Admin. So a user could skip the payment by sending the request directly.
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.