Insecure Direct Object Reference (IDOR) in engcastleportal.com
The student profile edit endpoint used a user-controlled numeric identifier without checking that it belonged to the logged-in user, so any authenticated student could view other students' personal details by changing that number. The author also speculates that the exposed email addresses could enable account takeover, but does not demonstrate this.
Published on medium.com
Hi, I’m Mohammed Mogeab Ahmed Al-hajj, a security researcher. In this article, I’m sharing details of a critical Insecure Direct Object Reference (IDOR) vulnerability I discovered in engcastleportal.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 backend relied only on the presence of a logged-in session and did not verify that the user_id in the path matched the authenticated user.
Impact
Any authenticated student could read and scrape the personal data of other students at scale; the claimed account takeover is speculative and was not demonstrated.
What the attacker needed
A valid student account; ability to send requests with a session cookie
The fix
The report says the bug was fixed; the suggested remediation is to enforce ownership checks so that user_id matches the session user, and to use non-sequential identifiers.
How it was found
- Log in with a valid student account.
- Capture the session cookie using browser developer tools or a proxy.
- Request the profile edit endpoint while changing the user_id in the path.
- Observe that the full profile form of another student is returned.
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 website often puts an identifier in the address of a page, such as a number for your profile. If the site does not check that the number belongs to you, you can change it and see someone else's page. This is called an insecure direct object reference, and here it exposed names, emails, phone numbers and dates of birth.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.