Business Logic Error Leads to Unauthorized Privilege Downgrade of
A business logic flaw in a report-sharing feature allowed a user with Can-Edit or Can-Manage permission to blank the owner's name and email in an intercepted request, then re-share the report with the owner's original email at a lower role before refreshing. This permanently downgraded the owner's permissions, removing their ability to manage sharing and potentially locking the report if no other Manage user existed.
The target is a well-known customer engagement and business support platform that provides various tools for customer service, sales, and marketing automation.
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 share endpoint accepted firstname, lastname, and email parameters from any user with share access and did not prevent re-adding an existing owner with a lower role, so the owner's effective permissions were overwritten.
Impact
An attacker with Can-Edit or Can-Manage could permanently downgrade the owner's permissions, and if no other Manage user exists the report becomes permanently locked with no way to recover administrative control.
What the attacker needed
A free account; Can-Edit or Can-Manage permission on a report; ability to intercept and modify requests
How it was found
- Intercept the share request and note that firstname, lastname, and email are sent in the JSON body.
- Set the owner's firstname, lastname, and email to blank values in the intercepted request.
- Before refreshing the page, share the report again using the owner's original email but with Can-View permission.
- Observe that two users with the same email appear, both labelled OWNER.
- Switch to the original owner's account and see that critical sharing permissions are gone.
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 report-sharing system lets the owner give other people different levels of access, like view-only or edit. The bug is that someone with edit rights could trick the system into re-adding the owner as a lower-level user, which stripped the owner's real control even though the screen still said 'owner'. This is a logic flaw: the code did not check that you cannot change the owner's role this way.
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.