SQLI with extract Huge Data just Got N/A
A login panel on a subdomain was vulnerable to error-based SQL injection, which the author confirmed and then exploited with a tool to extract database names. The report was closed as out of scope because the vulnerable host was on a different domain than the main target.
so first thing i do when start Hunting i go for third party service like Fofa and censys,zoomeye,shodan in my case i went first to shodan and used this Dork to see what we have with our target
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 input was concatenated directly into a SQL query without parameterisation or escaping.
Impact
An attacker could extract database names and potentially other data from the vulnerable system, but the report was closed as out of scope because the host was on a different domain.
What the attacker needed
Access to the login panel; no authentication needed
How it was found
- Found a login panel on a subdomain via Shodan search.
- Tried authentication bypass and response manipulation without success.
- Entered a quote character in both input fields and received a SQL error.
- Captured the login request and ran sqlmap, which failed to extract data.
- Used Burp Suite scanner, which confirmed SQL injection.
- Ran ghauri, which successfully extracted database names.
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 when user input is inserted into a database command without proper handling, letting an attacker change the command. Here, typing a quote in the login form caused a database error, showing the input was not sanitised. The author then used a tool to pull out database names, but the program rejected the report because the affected site was not the main domain.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.