Broken Access Control Leads to Unauthorized Account Deletion via
The author found that sending a DELETE request to an account endpoint caused their own account to be deleted and logged them out, with the server returning a 500 error. After logging back in, the account ID had changed, indicating the account was removed. The report was triaged as a duplicate with low severity.
Published on medium.com
This write-up covers my very first bug hunting experience on HackerOne. To be honest, I was initially quite intimidated by the fierce competition.
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 server did not properly restrict who could send a DELETE request to the account deletion endpoint, allowing the authenticated user to delete their own account (or the endpoint lacked proper authorization checks).
Impact
An attacker could delete their own account, but the report was triaged as low severity and a duplicate, suggesting limited impact.
What the attacker needed
A Google account; access to the web application
How it was found
- Log in to the web application using Google.
- Intercept the request in Burp Suite.
- Change the HTTP method to DELETE and send the request.
- Observe that the account is logged out and the server returns a 500 error.
- Log back in and notice the account ID has changed, indicating the account was deleted.
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.
This is about a web application where a request to delete an account worked when it perhaps should not have, or at least the author was surprised that their own account was deleted. The author was testing different HTTP methods (like GET, POST, DELETE) to see how the server responds. When they used DELETE, their account was removed and they were logged out, which they reported as a broken access control issue.
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.