[HIGH]Stored XSS chained with IDOR at https://edrn-labcas.jpl.nasa.gov/labcas-ui/s/index.html?search=*
The application has a stored cross-site scripting (XSS) vulnerability in the 'Saved Searches' feature, combined with an insecure direct object reference (IDOR) flaw. An attacker can inject malicious JavaScript into their profile name and use the IDOR to associate the payload with another user's account, causing the script to execute when the victim logs in.
- Accepted in 25 hours
- Disclosed after 50 days
Summary by National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program
All this does is modify the json within the response. This does not execute XSS attacks
Summary by dextro
The application at https://edrn-labcas.jpl.nasa.gov/labcas-ui/s/index.html?search=* has a Stored XSS vulnerability in the "Saved Searches" feature, escalated by an IDOR flaw. Attackers can inject malicious JavaScript into their profile name and exploit the IDOR to link the payload to another user’s account, leading to XSS execution when the victim logs in.
Steps to Reproduce Log in and navigate to "Saved Searches." Intercept the POST request to /ksdb/save_labcas_search_input/. Modify profile_name to <script>alert(1)</script> and submit. Change the userid to a victim’s ID and submit again. The payload executes when the victim logs in. Business Impact Privilege Escalation: XSS escalates from self-account to others. Cross-User XSS: Affects multiple users. Profile Tampering: Allows unauthorized profile changes. A video PoC demonstrates the attack, emphasizing the need for input sanitization and proper authorization checks.
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
Impact
An attacker could escalate privileges from their own account to other users' accounts, perform cross-user XSS, and tamper with profiles.
What the attacker needed
A user account; victim logs in
The fix
The application should sanitise user input and enforce proper authorization checks on the userid parameter.
How it was found
- Log in and navigate to 'Saved Searches'.
- Intercept the POST request to /ksdb/save_labcas_search_input/.
- Modify the profile_name parameter to contain a script payload and submit.
- Change the userid parameter to a victim's ID and submit again.
- The payload executes when the victim logs in.
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.
This report describes two security problems. First, a stored cross-site scripting (XSS) flaw lets an attacker save a script as part of their profile name, which runs in other users' browsers. Second, an insecure direct object reference (IDOR) flaw lets the attacker change a user ID in a request to attach that script to someone else's account, so the victim runs it when they log in.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.