How I Found a Data Deletion Bypass via Subdomain Synchronization
A user with the Moderator role could delete an entire organisational group from the todo subdomain, even though only Admin and Owner roles should have that right. Because the two subdomains share data, the deletion cascaded and removed the group from the account subdomain as well.
medium.com
Published on medium.com
This is what I did after my lunch break and immediately got enough cash to buy stuff in the premium store
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 todo subdomain's server-side endpoint did not enforce the role check that the account subdomain's documentation required, so the UI and API both allowed a Moderator to delete a group.
Impact
A Moderator could permanently delete an organisational group, and the deletion cascaded to the account subdomain, affecting both platforms.
What the attacker needed
A free account; Moderator role in a group; access to the todo subdomain
The fix
The application should enforce proper authorisation and access control on both the user interface and the API endpoint sides.
How it was found
- Create an account and an organisation, then invite a second user and give them the Moderator role.
- Log in as the Moderator and open the group settings on the todo subdomain.
- Notice that a Delete Group button is visible and not disabled.
- Click the button; the server accepts the request and returns a success response.
- Refresh and confirm the group is gone from both subdomains.
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 had two parts that shared the same data: one for account settings and one for daily tasks. The task part showed a delete button to a user whose role should not allow deleting anything, and the server did not check the role when the button was pressed. So that user could wipe out a whole group, and the deletion spread to the other part of the site too.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.