Skip to content
SQL injection Disclosed report Intermediate

SQL Injection in CVE Discovery Search

The CVE Discovery Search feature did not sanitise user-supplied search terms, allowing SQL injection. An attacker could use blind or timing-based techniques to disclose data from the analytics database, including report, team, and asset data.

rcoleman Follow

Originally disclosed on HackerOne

High 7.5 View original
  • Triaged in under an hour
  • Fixed in 1 hour
  • Disclosed after 2 hours

Summary: Unsanitized user-controlled inputs in the CVE Discovery Search allow for SQL injection.

Description: Search terms are split on whitespace but no additional sanitization is applied, allowing arbitrary SQL statements, such as a blind or timing-based attack.

Steps To Reproduce

  1. Visit https://hackerone.com/intelligence/cve_discovery
  2. Enter a search term that normally returns results, plus an injection payload such as //AND//'1%'='1 and confirm that the results are still returned
  3. Change the payload to //AND//'1%'='0 and confirm that no results are returned

Optional: Your Environment (Browser version, Device, etc)

  • Chrome

Optional: Supporting Material/References (Screenshots)

image.png
image.png From the original on HackerOne
image.png
image.png

Impact

Disclosure of data in Analytics Database, including report, team, and asset data

Attachments

image.png
image.png From the original on HackerOne
image.png
image.png

The original report as published on HackerOne, by rcoleman. 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 search terms were split on whitespace but then inserted into a SQL query without parameterisation or escaping.

Impact

An attacker could disclose data from the analytics database, including report, team, and asset data.

What the attacker needed

Access to the CVE Discovery search page

How it was found

  1. Visit the CVE Discovery search page.
  2. Enter a search term that normally returns results plus an injection payload, and confirm results are still returned.
  3. Change the payload to a false condition and confirm no results are returned.

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.

A search box on a website was passing what you typed directly into a database command without cleaning it first. This is called SQL injection: an attacker can add extra database instructions to the search, tricking the site into revealing information it should keep private. Here it could expose stored data about reports, teams, and assets.

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 from HackerOne

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.