IDOR in UK Government — Able To Delete Millions Appeal Case In Jast One Click
A delete-case endpoint used a sequential submission ID taken directly from the request, so changing the ID deleted another user's appeal case. An attacker could delete any case, and brute-forcing the ID could delete all cases on the system.
Let’s start, I want to tell you about my first critical IDOR vulnerability that I discovered and fixed in the UK government, and I hope my explanation is easy for you to understand.
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 delete endpoint trusted the client-supplied submission ID without checking that the case belonged to the requesting user.
Impact
An attacker could delete any appeal case by changing the ID, and brute-forcing the ID could delete all cases on the UK government system.
What the attacker needed
A logged-in account on the CasePortal; ability to capture and modify requests
How it was found
- Log in to the CasePortal and create a test case.
- Capture the delete request in Burp Suite and note the submissionID parameter.
- Send the request unchanged to confirm your own case is deleted.
- Change the submissionID to a neighbouring value and forward the request.
- Observe that another user's appeal case is 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.
When a website lets you act on an item by putting its ID number in the request, it must check that the item belongs to you. Here it did not, so changing the number let the author delete someone else's case. This kind of flaw is called an insecure direct object reference (IDOR).
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.