From Recon to Reward: Discovering a SQL Injection Vulnerability on a Subdomain
A parameter on a less-monitored subdomain was not properly sanitised before being used in backend database queries, allowing SQL injection. The author confirmed the issue through controlled tests and demonstrated it without accessing unauthorised data.
Published on medium.com
As a Bug Bounty Hunter at CyberVolt, one of the most valuable lessons I’ve learned is that small assets are often overlooked. During a routine assessment of a target within a public bug bounty program on Intigriti, I identified a subdomain that appeared to receive significantly less attention than the organization’s…
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 application built database queries directly from unsanitised user input in a parameter.
Impact
The vulnerability could expose sensitive backend data, though the author demonstrated it without accessing unauthorised data or causing disruption.
What the attacker needed
Access to the subdomain; a vulnerable parameter
How it was found
- Enumerate subdomains and fingerprint technologies.
- Discover endpoints and map application functionality.
- Find a parameter that interacts with backend database queries.
- Run controlled tests and observe changes in server responses.
- Validate database behaviour to confirm 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 when a website puts user input straight into a database command, so special characters can change what the command does. Here, a parameter on a forgotten subdomain was not cleaned, so the author could make the database behave differently. They tested carefully and did not take any private data.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.