I Hacked Indian Government Websites and became Admin Ethically.
The author found admin login panels on Indian government websites that were vulnerable to SQL injection authentication bypass, allowing login without valid credentials. This gave admin access and exposed sensitive personal information.
infosecwriteups.com
Published on infosecwriteups.com
Hi readers! This is a short write-up abouthow I Hacked Indian Government Websites and gained Admin Access.
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 code inserted user input directly into a database query instead of using parameterised queries, so a crafted password changed the query's logic.
Impact
An attacker could log in as an administrator without valid credentials and access sensitive personal information, including official, personal, address, account and qualification details.
What the attacker needed
Internet access; target has a vulnerable admin login panel
How it was found
- Search for admin panels on government websites using Google dorking.
- Go through the panels one by one and check their inputs.
- Enter a crafted password in the login form to bypass authentication.
- Get redirected to the admin panel with admin access and exposed data.
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 normally checks your username and password against a database. Here, the website built its database query in a way that let a specially crafted password trick the check into always passing, so the attacker got in as an administrator without knowing the real password.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.