How I Found Idor Sqli And Xss On Nasa
The author found an IDOR in a GraphQL API that let one user read and invalidate other users' product identifiers, a SQL injection in a search parameter that exposed the database version, and a reflected XSS in a week parameter. Each was reported to NASA, with the first two marked duplicate and the XSS triaged.
Published on infosecwriteups.com
In this write-up, I’ll share how I discovered three security issues on a subdomain belonging to NASA:
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely missing authorisation checks on GraphQL mutations, unsafe string concatenation in a SQL query, and direct rendering of a URL parameter into JavaScript without sanitisation.
Impact
An attacker could enumerate and invalidate other users' products, read the database version through SQL injection, and run script in a victim's browser via the reflected XSS; the text does not say whether any defence limited these.
What the attacker needed
A free account (for the IDOR); victim clicks a crafted link (for XSS); none for the SQL injection
The fix
The text does not state that any of the three issues was fixed; it only says the XSS was triaged.
How it was found
- Gather subdomains and live hosts with subfinder, assetfinder, dnsx and httpx.
- Create two accounts on a subdomain with login and registration.
- Query the GraphQL schema to list available queries and mutations.
- Change the cycle, pass and scene variables to read other users' product UUIDs.
- Send an invalidateProduct mutation with a victim's UUID to change its status.
- Find a search endpoint and its GitHub source, then inject a UNION SELECT to read the SQLite version.
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 write-up has not been written yet. The Original tab links to the source.
This write-up describes three separate mistakes on a NASA subdomain. An IDOR means the server lets you act on someone else's records just by changing an identifier, without checking that the record is yours. SQL injection means user input is pasted into a database query, so crafted input can change the query, and reflected XSS means input is echoed into a page so a script runs in the victim's browser.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.