From Dorks to Defense: How I Secured Two CERT-In Hall of Fames
Two government websites had parameters that were vulnerable to reflected cross-site scripting and SQL injection. An attacker could inject scripts or database queries through these parameters, though the text does not detail the exact impact.
infosecwriteups.com
Published on infosecwriteups.com
Getting recognized by CERT-In (Indian Computer Emergency Response Team) is a milestone for many bug bounty hunters and security researchers in India.
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 web application passed user-supplied parameters directly into SQL queries and HTML output without proper validation or escaping.
What the attacker needed
Victim clicks a crafted link; attacker can send crafted requests
The fix
The vulnerabilities were fixed, as the reports were validated and patched.
How it was found
- Use search engine dorks to find government URLs with parameters.
- Identify two sites with multiple parameters such as lang, lid, page, fromdate, todate, and state_name.
- Test for client-side issues and observe reflected XSS.
- Manipulate the lang and state_name parameters and notice unusual errors and broken pages.
- Confirm SQL injection with crafted payloads.
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 website sometimes takes input from the address bar, like a search term or an ID number, and puts it directly into its database or page. If it does not check that input properly, an attacker can type special commands that the site then runs, which can break the site or reveal data. This report found two such places on government sites.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.