Summary by bl4cksku11
NASA's Science Data Transfer Protocol (SDTP) server contains two vulnerabilities in its publicly available source code that chain together to allow unauthenticated arbitrary file read from the server filesystem.
Authentication bypass: SDTP authenticates requests using a plain, unsigned HTTP header (
Cert-UID). Any client that can reach the endpoint can authenticate as any user, including admin, by setting this header.Path traversal: The file download endpoint accepts a
file:location prefix and passes the path directly to Flask'ssend_file()with no validation or directory confinement (server/bin/endpoint/files.py:46-47).
Chaining these two issues, an unauthenticated attacker can register as admin, store a file record pointing to any path on the filesystem, and download its contents through the API. Confirmed readable targets include the PostgreSQL connection config (containing plaintext database credentials) and the Kubernetes service account token (enabling authenticated API calls against the cluster).
Source code: https://gitlab.modaps.eosdis.nasa.gov/infrastructure/transfers/sdtp
PoC environment: https://github.com/bl4cksku11/sdtp-bugcrowd-poc
CWE-22 (Path Traversal), CWE-306 (Missing Authentication for Critical Function).