Skip to content
Access control Write-up Beginner

Privilege Escalation How I Earned 500 By Discovering The Ability To Delete Documents As A Student

A student account could delete documents by sending the same delete request that an administrator used, because the server did not check the user's role. An attacker with a student account could delete any document they could identify.

Abhi Sharma Follow

Published on infosecwriteups.com

I recently stumbled upon a fascinating issue while testing Examosis, an educational platform. This issue allowed low privilege users,students, to delete documents and items they weren’t supposed to delete only administrators should have the privilege to delete content.

Abhi Sharma, on infosecwriteups.com

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 verify that the requesting user had an administrator role before processing the delete action.

Impact

A student could delete documents that only administrators were meant to delete, affecting the availability and integrity of course content.

What the attacker needed

A student account; an administrator account to capture the request; knowledge of a document identifier

How it was found

  1. Have both an administrator account and a student account on the platform.
  2. Log in as the student and open a course or workshop where documents can be downloaded.
  3. Select a document and obtain its document identifier.
  4. Capture the delete request made by the administrator account.
  5. Send that same delete request using the student account's session and the document identifier.
  6. Observe that the document 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.

On many websites, some actions are meant only for administrators, such as deleting content. The website should check who is making each request and refuse it if the person lacks permission. Here, the server accepted a delete request from a student account, so a normal user could remove documents they should only be able to read.

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.

More by Abhi Sharma

View all

22 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.