Skip to content
Access control Write-up Beginner

I Found a High-Severity OAuth Account Takeover Vulnerability on IIT Madras’s Student Portal

The IITM BS portals used a student's Roll ID derived from their email to map an OAuth login to a local account, without checking that the email belonged to a registered user on that portal. An attacker with a valid student email could log into the other programme's portal and gain full read and edit access to another student's account if their Roll IDs matched numerically.

betigetin Follow

Published on medium.com

IIT Madras’s online BS degree program is one of the largest distance-learning initiatives in India, serving tens of thousands of students across two independent streams: Data Science and Applications and Electronic Systems. Both programs run on separate sub-portals under a shared domain and rely on Google OAuth for…

Isha Sangpal, 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

The portal resolved the OAuth identity to a local account using only the Roll ID extracted from the email, without verifying that the authenticated email belonged to a registered user on that portal.

Impact

An attacker could gain full read and edit access to another student's profile, including name, phone number, email address, home address, academic progress, and badges, without the victim being notified.

What the attacker needed

A valid IITM student email; victim has a matching Roll ID number

The fix

The vulnerability was fixed by the IITM Technical Team, as confirmed in the report.

How it was found

  1. Log in to the Electronic Systems portal with a valid IITM student email via Google OAuth.
  2. Log out completely from the Electronic Systems portal.
  3. Initiate a fresh OAuth login on the Data Science portal using the same email address.
  4. Observe that the system logs you into a different Data Science student's account with the same Roll ID number.

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.

When you log in with Google, the portal needs to figure out which student account you are. It did this by taking a number from your email address and looking for a student with the same number on that portal. Because two different programmes could have students with the same number, a student from one programme could end up logged into a different student's account on the other programme.

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.