Skip to content
SQL injection Disclosed report Intermediate

SQL Injection

The application had a blind SQL injection vulnerability in the 'filter[event]' parameter, allowing an attacker to manipulate database queries. An attacker could use time-based or boolean-based techniques to extract sensitive information from the database.

k0x Follow

Originally disclosed on HackerOne

  • Triaged in 6 hours
  • Fixed in 22 days
  • Disclosed after 30 days

I discovered a Blind SQL Injection vulnerability in the application, which allows an attacker to manipulate database queries by injecting malicious input into the vulnerable parameter. Unlike regular SQL injection, blind SQL injection does not directly return data but can be exploited through true/false or time-based responses, revealing the structure and content of the database.

References

Impact

Blind SQL injection can be leveraged to extract sensitive information, bypass authentication, or escalate privileges by manipulating the backend SQL queries. Since the injection is blind, an attacker can use time-based, boolean-based, or out-of-band techniques to extract the data.

System Host(s)

██████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

Run SQLMap: Use the following SQLMap command to test for SQL injection by directly specifying the vulnerable URL and the parameter:

Bash
sqlmap -u "███████" \
--technique=BT --level=5 --risk=3 --threads=10 -p 'filter[event]' \
--dbms='MySQL' --batch --current-db --random-agent

-u: Specifies the target URL. --technique=BT: Tells SQLMap to use both Boolean-based (B) and Time-based (T) blind SQL injection techniques. --level=5: Sets the highest level of testing, increasing the depth of testing. --risk=3: Specifies a higher risk level for potentially dangerous payloads. --threads=10: Increases the number of concurrent requests, speeding up the process. -p 'filter[event]': Specifies that the filter[event] parameter is the target for injection. --dbms='MySQL': Indicates that the target database management system is MySQL. --batch: Automatically answers all questions (non-interactive mode). --current-db: Attempts to retrieve the current database name. --random-agent: Randomizes the User-Agent header to evade detection.

████████

Suggested Mitigation/Remediation Actions

The original report as published on HackerOne, by k0x. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application failed to properly sanitise or parameterise user input in the 'filter[event]' parameter before using it in a SQL query.

Impact

An attacker could extract sensitive information, bypass authentication, or escalate privileges by manipulating backend SQL queries.

What the attacker needed

Access to the vulnerable URL; ability to send crafted requests

How it was found

  1. Run SQLMap with the target URL and the 'filter[event]' parameter, using boolean-based and time-based techniques.
  2. SQLMap is run to test the parameter for injection.
  3. SQLMap is instructed to attempt to retrieve the current database name.

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 report has not been written yet. The Original tab links to the source.

SQL injection is when user input is inserted into a database query without proper handling, letting an attacker change the query's meaning. In a blind SQL injection, the attacker cannot see the query results directly but can ask true/false questions or cause time delays to learn information bit by bit. This report shows that the 'filter[event]' parameter was vulnerable, so an attacker could use automated tools to extract data from the database.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

More by k0x

View all

2 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.