I Got Bored and Broke Into My College Portal. Here’s What I Found
A college HRMS left Django debug mode enabled in production, exposing stack traces, file paths, and Firebase API keys. Combined with path traversal and insecure session cookie settings, an attacker could potentially forge sessions and impersonate any user, including administrators.
Published on medium.com
I want to be honest with you from the start: I wasn’t supposed to find any of this. I’m not a professional penetration tester.
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 multiple misconfigurations: Django DEBUG mode left on in production, insecure session cookie flags, and outdated software.
Impact
An attacker could potentially forge session cookies to impersonate any user, including admins, and cause a denial of service; however, the text does not confirm that path traversal or session forgery were actually exploited.
What the attacker needed
Access to the web portal; no authentication needed for some endpoints
The fix
The organisation acknowledged the findings and committed to remediation, including turning off debug mode, rotating keys, upgrading software, and fixing cookie flags.
How it was found
- The student tried hitting endpoints with missing or weird parameters.
- The system returned a full Django debug trace with server file paths, libraries, and configuration values.
- Firebase API keys were found in the debug responses.
- The student noticed endpoints serving static files and media uploads looked vulnerable to path traversal.
- The student tried a crafted floating-point value on an exposed endpoint and got a 500 error.
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 is a story about a student who found that their college's internal website was misconfigured in several ways. The most serious issue was that the website showed detailed error messages to anyone, which revealed secret information like file locations and API keys. Because of other mistakes, someone could potentially use that information to log in as other people, including administrators.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.