SQLi in .gov.in Exposed Millions of Aadhaar, Bank Data and Personal Data
A SQL injection vulnerability in a parameter of an Indian government website allowed extraction of sensitive citizen data, including names, phone numbers, Aadhaar numbers, plaintext passwords, and bank details. An attacker could exploit this to access millions of records.
Hi, I’m Prashant Kamkar, a cybersecurity enthusiast, occasional bug bounty hunter, and automation enthusiast. I love building things that automate my work.
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 improper input sanitisation of a URL parameter used in database queries.
Impact
The vulnerability exposed sensitive data of millions of Indian citizens, including Aadhaar numbers, bank details, and plaintext passwords.
What the attacker needed
Access to the vulnerable endpoint; no authentication mentioned
The fix
The vulnerability should be fixed by properly sanitising user input and using parameterised queries; the report says remediation began after disclosure.
How it was found
- Run an automated recon pipeline on government sites.
- Notice suspicious URLs from waybackurls.
- Test parameters with SQLmap.
- Confirm boolean-based, time-based, and UNION-based injection.
- Extract user data and other tables containing Aadhaar and bank details.
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 user input is inserted into a database query without proper cleaning, letting an attacker change the query's meaning. Here, a parameter on a government website was vulnerable, so an attacker could trick the database into revealing private information about many people.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.