Skip to content
XSS Disclosed report Intermediate

Bypassing the restrictions to load the Jupyter Notebook ipynb from organizations other than nasa on https://lb.gesdisc.eosdis.nasa.gov/meditor

The NASA meditor application restricted loading Jupyter Notebook files to the nasa GitHub organisation, but a path traversal in the URL parameter let an attacker load a notebook from any GitHub repository. Loading a malicious notebook resulted in cross-site scripting.

mateuszek Follow

Originally disclosed on Bugcrowd

  • Accepted in 9 days
  • Fixed in 4 months
  • Disclosed after 4 months

Summary by mateuszek

  1. First of all I found the NASA meditor website application
  2. Then I found the public Github repository related to NASA meditor
  3. Then I found the endpoint / url that should allow loading and displaying Jupyter Notebook ipynb from Github (only from organization github.com/nasa)
  4. Then I bypassed it by adding /../ in the url parameter - that allowed me to load Jupyter Notebook ipynb from the Github resources controlled by me
  5. Then I loaded and displayed the infected Jupyter Notebook ipynb, which resulted in XSS

The original report as published on Bugcrowd, by mateuszek. 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 checked the GitHub organisation in the URL string but did not normalise the path, so a traversal sequence changed which repository was actually fetched.

Impact

An attacker could load a malicious notebook from their own GitHub account and execute script in the context of the NASA meditor site for anyone who viewed it.

What the attacker needed

Attacker-controlled GitHub repository; victim views the crafted notebook URL

How it was found

  1. Find the NASA meditor web application.
  2. Find its public GitHub repository.
  3. Find the endpoint that loads and displays Jupyter Notebook files from GitHub, restricted to the nasa organisation.
  4. Add a traversal sequence to the URL parameter to load a notebook from an attacker-controlled GitHub repository.
  5. Load the malicious notebook, which triggers cross-site scripting.

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.

The site had a feature that fetched a notebook file from GitHub, but it only wanted files from NASA's own GitHub account. By putting a special sequence of characters in the address, the author made the site fetch a file from a different account they controlled. That file contained code that ran in the browser of anyone viewing it, which is called cross-site scripting.

What is XSS?

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

More by mateuszek

View all

1 more disclosed report, best first.

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.