Exposed Secrets: The Peril of Broken Access Control
A school management website allowed teachers to access any student's files, while students could only see their own. The author found that a student account could not directly open a teacher-style student details URL, but the text does not show a successful bypass or what data was ultimately accessed.
A Broken access control vulnerability is a type of security flaw that allows an unauthorized user access to restricted resources. By exploiting this vulnerability, attackers can circumvent standard security procedures and gain unauthorized access to sensitive information or systems.
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
What the attacker needed
A teacher account; a student account
How it was found
- Log in as a teacher and open a student's profile to see their results and marks.
- Copy the URL of that student details page.
- Log out and log in with a student account.
- Visit the copied URL; the page shows that it does not exist.
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.
Broken access control means the website does not properly check whether you are allowed to see or change something. Here, teacher accounts could view and edit any student's records, but student accounts were supposed to see only their own. The author tried to use a student account to open a link meant for teachers and got a 'page does not exist' message, so the actual bypass is not shown.
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.