XML External Entity Injection in NASA CMR Ingest API - info dump
An XXE vulnerability in NASA's CMR Ingest API allowed unauthenticated attackers to perform blind SSRF and, through error-based techniques, read arbitrary files from the server. The flaw was in XML parsing of collection validation requests.
- Accepted in 5 days
- Fixed in 31 days
- Disclosed after 52 days
Summary by thomasito
An XXE vulnerability was identified in NASA’s Common Metadata Repository that enabled unauthenticated arbitrary file reads and server-side request forgery (SSRF).
Affected endpoints:
- Production:
https://cmr.earthdata.nasa.gov/ingest/providers/*/validate/collection/* - UAT:
https://cmr.uat.earthdata.nasa.gov/ingest/providers/*/validate/collection/*
Initial testing demonstrated blind SSRF. Subsequently, error-based XXE techniques revealed entity expansion in parser error responses, resulting in a arbitrary file read vulnerability.
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 XML parser was configured to allow external entities and did not disable entity expansion or external DTD loading.
Impact
An unauthenticated attacker could read arbitrary files from the server and perform SSRF, potentially accessing internal resources.
What the attacker needed
None
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.
XML External Entity (XXE) is a flaw where an application parses XML input that can include special instructions to fetch local files or make network requests. Here, the API accepted XML for validation and did not disable these features, so an attacker could make the server read files or contact internal systems.
What is XXE?
An XML parser resolves entities the attacker defines, reading local files or making the server send requests.