Skip to content
SQL injection Write-up Intermediate

️‍♂️ How to Hunt a Perfect 10.0 CVSS Bug Bounty Score (An

A SQL injection vulnerability was found in a parameter of a web application, where the backend replaced commas with periods before using the value in a query. An attacker could inject SQL commands to extract data from the database, as demonstrated by time-based and boolean-based techniques.

nocley Follow

Published on medium.com

Imagine you’re a treasure hunter, scouring a digital jungle for a hidden gem — a flaw in a website that could earn you fame, glory, and a hefty bounty. That’s exactly what my friend ngosytuan and I set out to do when we targeted a site called sub.redacted.com.

nocley, on medium.com

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

Impact

An attacker could extract sensitive data from the database, potentially leading to full compromise, as the report claims a 10.0 CVSS score.

What the attacker needed

Access to the web application; ability to send crafted requests

How it was found

  1. Inject single quotes into all parameters of a request to the target.
  2. Observe a 500 Internal Server Error, indicating a possible SQL injection.
  3. Identify the specific parameter that causes the error.
  4. Send a UNION-based payload and observe a data conversion error.
  5. Send a time-based payload with SLEEP(10) and confirm a 10-second delay.
  6. Write a custom script using boolean-based payloads to extract data.

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 directly into a database command without checking it, so an attacker can sneak in extra commands. Here, the site changed commas to periods in the input, which confused normal testing tools, but the attacker still managed to make the database wait on purpose to prove the flaw. This could let someone read private 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 nocley

View all

3 more disclosed reports, best first.

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.