Skip to content
SQL injection Write-up Beginner

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.

Ramalingasamy Follow

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.

Ramalingasamy, on infosecwriteups.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

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

  1. Visit the staff login page.
  2. Notice that client-side validation prevents typing certain characters.
  3. Capture the login request with Burp Suite.
  4. Modify the username parameter to an SQL injection payload.
  5. 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.

More by Ramalingasamy

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.