Broken access control, can lead to legitimate user data loss
An unauthenticated endpoint allowed deletion of user access requests by supplying a sequential request ID. An attacker could delete legitimate user requests, causing data loss and disrupting the system.
- Triaged in 26 hours
- Fixed in 15 days
- Disclosed after 39 days
Hi team, During testing the security of ██████████ I found another possible attack vector: (There are two reports preceding this one - https://hackerone.com/reports/1489470 and https://hackerone.com/reports/1489744)
I will try to explain: When an user need access to that information system he fills a request form at: https://█████████/████████ or https://█████████/██████ After submitting the form the server response contains a █████████ which identifies this user request. Then the request is reviewed by an administrator, and he decides if user access will be granted or rejected. The vulnerability I found is that unauthorized person can access the end point responsible for deleting user requests - █████████ and by providing just the ███ parameter he can delete any request.
References
Impact
An attacker can delete legitimate user requests, disturbing the normal operation of the system and causing data loss. The user request ids are sequential numbers - my requests were given ids - ████████, so the attacker can delete all requests in the system by accessing the ████ end point with each ██████ from ██████████.
System Host(s)
███████
Affected Product(s) and Version(s)
██████████
CVE Numbers
Steps to Reproduce
- Activate Burp proxy, go to https://███/██████████, fill and submit the form (screenshot1)
- Inspect server response in Burp and take a note of the returned █████ (screenshot2) which is number, referencing this user access request
- (optional) we can confirm our request is in the system by performing the attack described in the other report I made (https://hackerone.com/reports/1489470) - resulting in our request being exfiltrated from the database:
execute following command, and replace the █████ parameter with the one you noted on step 2 (screenshot) curl https://██████/██████████ -X POST -data="url=%2F████&██████████=████████" -k
- Deleting the request - CAUTION - execute this step only by referencing ██████████ for requests, you made otherwise you will delete legitimate user request!(sceenshot4)
the command abusing the delete request endpoint is: curl https://██████/███████████████ -X POST -data="url=%2F███████&███████=██████" -k
- (optional) to confirm request is deleted you can execute again Step 3, which now responds with empty body - the request is no longer present in the database.
Suggested Mitigation/Remediation Actions
The ██████████ endpoint should perform check if the user is logged in and authorized to use it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the delete endpoint lacked authentication and authorisation checks, and used predictable sequential identifiers.
Impact
An attacker could delete legitimate user requests, causing data loss and disrupting the system; because IDs are sequential, all requests could be deleted.
What the attacker needed
No authentication required; sequential request IDs
How it was found
- Use a proxy to intercept traffic and submit the access request form.
- Note the request ID returned in the server response.
- Optionally confirm the request exists by using another reported vulnerability to retrieve it.
- Send a request to the delete endpoint with the noted request ID.
- Optionally repeat the retrieval step to confirm the request is 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 report has not been written yet. The Original tab links to the source.
A website lets people submit requests for access. The part of the site that deletes those requests did not check who was asking. Anyone who guessed a simple number could delete other people's requests.
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.