Skip to content
Access control Write-up Beginner

How I found a Privilege Escalation bug in bug bounty.

A co-teacher could add another co-teacher to a class they did not own by changing the class ID in the request to the victim's class ID. This let the attacker add a teacher to the victim's class who could post bad content, add fake students, and lower student points.

gitlime71 Follow

Published on medium.com

This is a write up about how i got a privilege escalation bug in bug hunting, So let’s start. The program was an educational platform and you can create a class on it and you can add students, give marks, ask students to do a task or to do their homework and you can add a co-teacher in your class, BUT the co-teacher…

Raccoon, on medium.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 trusted the class ID supplied in the request without verifying that the requesting user owned that class.

Impact

The added teacher could post bad words, add fake calendars and students, and decrease student points; even if the owner removed them, the attacker could add the same teacher again.

What the attacker needed

A co-teacher account in the victim's class; ability to intercept and modify requests

How it was found

  1. As a co-teacher in the victim's class, create your own class on the platform.
  2. Add a co-teacher to your own class using the co-teacher's email address.
  3. Intercept the request that adds the co-teacher.
  4. Change the class ID in the request to the victim's class ID and send it.

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.

A co-teacher is a helper in an online class, but only the class owner should be allowed to add other co-teachers. The website checked the request but did not check that the person sending it actually owned the class they were adding a teacher to. By swapping the class ID number, a co-teacher could add someone to a class they did not control.

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 gitlime71

View all

3 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.