How I Secured Tamil Nadu CM Cell Website from a Data Breach
The login page of the Tamil Nadu CM Cell website was vulnerable to SQL injection, allowing an attacker to bypass authentication and access sensitive citizen data. The author used sqlmap to confirm the injection and reported it, and the issue was resolved.
medium.com
Published on medium.com
Karthikeyan here, I’m a passionate Ethical Hacker and Cyber Security Researcher.
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 form's input was not properly sanitised before being used in a database query, allowing SQL injection.
Impact
An attacker could gain unauthorised access to sensitive citizen data, potentially manipulate or delete critical data, and damage the government's reputation.
What the attacker needed
None
The fix
The issue was fixed after the author reported it through proper channels.
How it was found
- The author browsed the CM Cell website as a regular user and noticed a potential vulnerability.
- The author captured the login request to /login.php.
- The author ran sqlmap against the captured request to test for SQL injection.
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.
SQL injection is a flaw where user input is inserted into database commands without proper handling, letting an attacker change the command's meaning. Here, the login form could be tricked into letting someone in without valid credentials, potentially exposing private information submitted by citizens.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.