Internal Solr Query Injection enabling Local FIle Inclusion and Potential SSRF on trek.nasa.gov
The server passed a user-supplied query parameter into an internal Apache Solr request without sanitising it, allowing query injection. An attacker could use this to reach internal resources through the Solr instance, including local file inclusion and potential SSRF.
- Fixed in 18 days
- Disclosed after 21 days
Summary by YeJunWon
The server forwards a q query to an internal network based on Apache Solr using a uuid query parameter.
An attacker can inject a new query into the internal network by using %26.
By controlling the Solr shards parameter via query injection, an attacker can gain access to internal resources through the internal Solr instance.
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 concatenated the user-controlled uuid parameter into the internal Solr query string without encoding or validation, so an encoded ampersand could introduce new Solr parameters such as shards.
Impact
An attacker could read local files and potentially make the internal Solr instance send requests to other internal systems, though the text does not demonstrate a full exploit.
What the attacker needed
Access to the public web endpoint; ability to send crafted query parameters
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.
The website took part of the address the user typed and quietly added it to a request it made to an internal search server. Because it did not clean that input, a user could add extra instructions that the internal server would obey. This let the user make the internal server fetch files or reach other internal services that should not be reachable from outside.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.