Skip to content
SQL injection Disclosed report Beginner

SQL Injection via URL

The report claims a time-based SQL injection vulnerability in URL parameters on several pages of a website. An attacker could manipulate SQL queries to access or alter sensitive data, potentially leading to full database compromise.

jonasdiasrebelo Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 28 days
  • Disclosed after 8 months

Description: Hi! I discovered a SQL Injection vulnerability via URL on the website ██████████. The vulnerability allows for the manipulation of SQL queries executed by the backend database, which could potentially lead to unauthorized data access or manipulation.

If you edit the sleep() value from 6 to another number, you will see that the page will have a longer/shorter delay to load. Thus proving SQLi.

██████████thank-you0'XOR(if(now()=sysdate(),sleep(6),0))XOR'Z ████████=sysdate(),sleep(6),0))XOR'Z █████locations0'XOR(if(now()=sysdate(),sleep(6),0))XOR'Z/ ██████careers0'XOR(if(now()=sysdate(),sleep(6),0))XOR'Z

Impact

The ability to manipulate SQL queries can lead to: Unauthorized access to sensitive data. Potential data leakage. Data manipulation or corruption. Full database compromise if administrative permissions are accessible.

System Host(s)

██████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

I found these directories vulnerable, try changing the value '6'.

████thank-you0'XOR(if(now()=sysdate(),sleep(6),0))XOR'Z ████=sysdate(),sleep(6),0))XOR'Z ██████████locations0'XOR(if(now()=sysdate(),sleep(6),0))XOR'Z/ ██████careers0'XOR(if(now()=sysdate(),sleep(6),0))XOR'Z

Suggested Mitigation/Remediation Actions

Use parameterized queries when dealing with SQL queries that contain user input. Parameterized queries allow the database to understand which parts of the SQL query should be considered as user input, therefore solving SQL injection.

The original report as published on HackerOne, by jonasdiasrebelo. 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 builds SQL queries by concatenating user input from URL parameters without using parameterised queries or proper escaping.

Impact

An attacker could potentially access, leak, or manipulate sensitive data, and if administrative permissions are available, fully compromise the database.

What the attacker needed

None

How it was found

  1. Visit one of the listed URLs with the payload containing a sleep value of 6.
  2. Observe the page load delay.
  3. Change the sleep value to a different number and observe the delay change accordingly.

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 a website puts user input directly into a database command without checking it. Here, the tester added a special instruction to the web address that makes the database wait for 6 seconds if the input is treated as code. By changing the number, they could see the page load slower or faster, which shows the database is running their code.

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 jonasdiasrebelo

View all

27 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.