How I Exposed The Teachers Aadhaar Card Bank Details In The College Website
The staff login page had a SQL injection vulnerability that allowed the attacker to log in as an administrator by bypassing client-side validation. Once logged in, the attacker could access and export sensitive personal and financial information of students and teachers.
Published on infosecwriteups.com
Once a day I finished my intern work and I went for playing cricket with my friends. They asked me if you were having GOOGLE honorable mentions but it doesn’t mean you are a real hunter.
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 did not properly sanitise user input on the server side, relying only on client-side validation, allowing SQL injection.
Impact
An attacker could log in as an administrator and access and export sensitive personal and financial information of students and teachers, including bank account numbers, bank names, and PAN card details.
What the attacker needed
Access to the staff login page; ability to intercept and modify HTTP requests
How it was found
- Visit the staff login page.
- Notice that client-side validation prevents typing certain characters.
- Capture the login request with Burp Suite.
- Modify the username parameter to an SQL injection payload.
- Send the request and log in as admin.
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 login form was not properly checking what users typed, so an attacker could trick it into letting them in without a real password. This is called SQL injection, where special characters in the input change the database command. Once inside, the attacker could see private data like bank account numbers and ID card details.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.