Skip to content
XSS Disclosed report Intermediate

User-controlled URL propagated into AngularJS root scope via $location.absUrl() (DOM XSS primitive)

An AngularJS application placed the full user-controlled URL into the root scope without sanitisation. No direct exploitation was demonstrated, but the behaviour is a DOM XSS primitive that could allow script execution in some rendering contexts.

National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program

Originally disclosed on Bugcrowd

Informational View original
  • Accepted in 20 hours
  • Disclosed after 9 days

Summary by National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program

Unable to reproduce.

Summary by WalidRiouah

An informational client-side security finding was responsibly reported and accepted through the NASA Vulnerability Disclosure Program via Bugcrowd. The issue involved improper handling of user-supplied URL data within an AngularJS-based application, where full URL values were propagated into application scope without contextual sanitization. Although no direct exploitation was demonstrated, the behavior highlights a client-side data handling pattern that may require additional safeguards in certain rendering contexts. The report emphasizes the importance of secure client-side data handling and adherence to AngularJS best practices.

The original report as published on Bugcrowd, by National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program. Images and videos are our own copies; raw HTML is shown as text. View it on Bugcrowd.

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 read the full URL via $location.absUrl() and assigned it to the AngularJS root scope without sanitising it for the context where it is later rendered.

Impact

No direct exploitation was demonstrated; the behaviour is a DOM XSS primitive that may allow script execution in certain rendering contexts.

What the attacker needed

Victim opens a crafted link

The fix

The application should sanitise or avoid propagating the full user-controlled URL into the root scope, and follow AngularJS best practices for contextual output encoding.

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.

AngularJS is a JavaScript framework for building web pages. The root scope is a shared data store that every part of the page can read. If a value from the address bar is put there without cleaning, an attacker who can make someone open a crafted link may get their code run in that page.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.