Skip to content
Access control Write-up Beginner

When Paywall is Just a Wallpaper

The API exposed student course details and PII without authentication, and allowed users to set their own role to admin during signup. An attacker could read other students' personal data, download paid course videos for free, and gain administrative privileges.

medium.com

Published on medium.com

I was hired to do a Vulnerability Assessment for a learning platform. Nothing fancy, just the usual recon, checking APIs, and testing security.

Aryan Shrestha, 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 missing authentication and authorization checks on API endpoints, plus allowing user-controlled role assignment during registration.

Impact

An attacker could access other students' personal information, download paid course videos without paying, and gain administrative control of the platform.

What the attacker needed

No authentication needed for API; Ability to sign up

The fix

The platform should enforce authentication and role-based access control on all API endpoints, prevent users from assigning their own roles, and properly enforce the paywall.

How it was found

  1. Send a request to /student/courses/details/<course-id> without authentication.
  2. Observe student PII and course video links returned.
  3. During signup, change the role parameter from 'student' to 'admin'.
  4. Complete registration and receive admin privileges.

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.

This learning platform's API did not check who was asking for information. Anyone could request student details and paid videos without logging in. Also, when signing up, users could choose to be an admin instead of a student, giving them full 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.

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.