Exposing Nearly 2,000 User Records Through a SQL Injection
A SQL injection vulnerability in a university web application allowed the attacker to access the administrative panel, which exposed nearly 2,000 user records including email addresses, phone numbers, and plaintext passwords. The attacker could then use these credentials to attempt account takeovers, though the email provider blocked one such attempt with additional verification.
medium.com
Published on medium.com
While assessing the security of a university web application, I discovered what initially appeared to be a fairly standard SQL Injection vulnerability.
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 application failed to properly sanitise user input before using it in SQL queries, allowing injection, and additionally stored passwords in plaintext.
Impact
An attacker could access nearly 2,000 users' email addresses, phone numbers, and plaintext passwords, and could attempt to reuse those credentials on other services, though the email provider's suspicious-login detection blocked one such attempt.
What the attacker needed
Access to the web application; SQL injection vulnerability present
The fix
The organisation successfully remediated the vulnerability, though the text does not detail the specific fix; it should also hash passwords and avoid storing them in plaintext.
How it was found
- Identify a SQL injection vulnerability in the university web application.
- Confirm the vulnerability and use it to gain access to the administrative panel.
- Review the user management section and observe sensitive user information.
- Perform a limited validation using a single set of credentials to check for password reuse.
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 SQL injection is a flaw where a web application lets a user's input change the database commands it runs, so an attacker can trick the database into giving back extra data. Here, that let the tester reach an admin area that showed private details of about 2,000 people, including their passwords stored without any scrambling. Because people often reuse passwords, those details could be used to try to break into other accounts, like email.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.