How I Hacked Into a Nationwide University Database System Exposing Thousands of Student Records
A backup portal login could be bypassed by changing the server's 'failure' response to 'success' in the browser, and the backup feature passed a user-controlled parameter into a PHP exec() call, allowing command injection. The attacker used this to run commands, obtain a reverse shell, read database credentials from a config file and log into a MySQL server holding records of over 100,000 students.
Hello friends, I’m a 3rd year BCA student & part-time Bug hunter who is very passionate about cybersecurity (Mainly web). Here is a quick article on how I was able to hack into the server of a large university solutions portal which has many university clients and thousands of students’ data.
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 the login result was enforced only on the client side, and the backup script passed the sendarr parameter unsanitised into a shell command via exec().
Impact
An attacker could run commands on the server, obtain a shell, read database credentials and access records of over 100,000 students across many universities; the text does not describe any defence that limited the exploit.
What the attacker needed
Reachable /bkp backup portal; ability to intercept and edit responses; no valid backup credentials needed
The fix
The login result should be enforced on the server side, and the backup script should avoid passing user input into a shell command, for example by using an allowlist of database names and escaping arguments; the text says it was fixed after about two weeks.
How it was found
- Scan the student portal for directories and find the /bkp backup login page.
- Submit random credentials and intercept the login request and response.
- Change the 'failure' value in the response to 'success' to reach the backup panel.
- Send a request to the backup endpoint with a null byte in the sendarr parameter to trigger an error revealing exec().
- Inject a sleep command through sendarr and confirm the delay in the response.
- Redirect command output into a file in the web root and visit it to confirm code execution.
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.
The backup login page trusted a message from the server saying 'failure' or 'success', and the browser-side code decided what to show based on that word. By changing the word to 'success', the attacker got into a limited panel. That panel had a backup button that built a system command from user input, so typing special characters let the attacker run their own commands on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.