Skip to content
SQL injection Disclosed report Intermediate

Blind SQL Injection at photojournal.jpl.nasa.gov

The sort parameter of the site's search feature was vulnerable to blind SQL injection, allowing conditional SQL expressions to be injected. An attacker could infer data from the backend database by observing time-based response delays.

MiguelSegoviaGil Follow

Originally disclosed on Bugcrowd

Critical View original
  • Accepted in 34 days
  • Fixed in 3 months
  • Disclosed after 16 months

Summary by MiguelSegoviaGil

A Blind SQL Injection vulnerability was identified on the NASA JPL Photojournal website https://photojournal.jpl.nasa.gov/new, specifically within the sort parameter of the search option. By injecting conditional SQL expressions, it is possible to infer data from the backend database through time-based response delays.

An attacker can exploit this vulnerability by modifying the sort parameter to include malicious SQL payloads. The use of the BENCHMARK() function in conjunction with conditional logic demonstrates the vulnerability, as the server response is significantly delayed only when the injected condition evaluates to true.

This behavior confirms the ability to extract sensitive information from the database without check the body response, just looking at the response time, a classic symptom of time-blind SQL injection.

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

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 sort parameter was concatenated into a SQL query without parameterisation or validation.

Impact

An attacker could extract sensitive information from the database, though only slowly and by inference rather than by reading responses directly.

What the attacker needed

Access to the public search page; ability to send crafted requests

The fix

The sort parameter should be validated against a fixed allow-list of sort options and the query built with parameterised statements.

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 website's search page let users choose how results were sorted. The site put that choice straight into a database command without cleaning it, so a crafted value could make the database answer yes/no questions. By timing how long the page took, an attacker could slowly learn secret data one bit at a time.

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 National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program

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.