4 Privilege Escalation & IDOR on One Single Feature!
A user with no rights on a task could still delete it, mark it complete, upload files to it and download its files by swapping the session cookie in API requests. This let any authenticated user tamper with other users' tasks and their attached files.
medium.com
Published on medium.com
I am here to share my findings with you! I love to share with you guys!
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 task endpoints authorised the request only by the session cookie and never verified that the caller owned or had rights over the referenced task ID.
Impact
A user without rights could delete or complete any task and upload or download any file attached to a task, disrupting the organisation's workflow; the author only speculates about further impact such as shell upload or cookie theft via XSS.
What the attacker needed
An authenticated low-privilege account; a second account owning a task; ability to intercept and edit requests
How it was found
- Capture the request used to delete a task as the owning user.
- Send it to the repeater tab and replace the cookie with the other user's session.
- Repeat the same cookie swap for the mark-as-complete request.
- Capture a file upload request from the owning user, drop it, and resend it with the other user's cookie.
- Find the file download endpoint in the sitemap tab and request it with the other user's cookie.
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.
The app checked who you were but not whether you were allowed to touch that particular task. By changing the cookie (the value that identifies your logged-in session) to another user's, the tester acted as that user against tasks belonging to someone else. This is called an insecure direct object reference: the server trusts the ID in the request without checking ownership.
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.