Skip to content
XSS Disclosed report Beginner

Dom Based Xss

A DOM-based cross-site scripting flaw existed in the prettyPhoto plugin used on a subdomain, because the URL fragment was inserted into the page without proper filtering. An attacker could craft a link that runs script in the victim's browser when opened.

e3xpl0it Follow

Originally disclosed on HackerOne

  • Triaged in 2 hours
  • Fixed in 6 days
  • Paid in 19 days
  • Disclosed after 47 days

Hi. found dom xss on this subdomain eng.uber.com. you are using a vulnerable plugin prettyPhoto.. This XSS will work in Firefox,Chrome - Google and IE last version ! And this is very dangerous! POC Firefox vector http://eng.uber.com/#prettyPhoto[i]/x,<svg/onload=alert(document.domain)>/x POC Google and IE http://eng.uber.com/#prettyPhoto[gallery]/1,<a onclick="alert(document.domain);">/

Add screenshot How to fix the vulnerability,upgrade the plugin or add the filter hashIndex = parseInt(hashIndex) hashRel = hashRel.replace(/([ #;&,.+*~':"!^$=>|/])/g,'$1');

Attachments

Dom_xss_google_chrome_49.0.2623.87_.jpg
Dom_xss_google_chrome_49.0.2623.87_.jpg From the original on HackerOne
Dom_xss_-firefox.jpg
Dom_xss_-firefox.jpg
Dom_xss_-IE-11.jpg
Dom_xss_-IE-11.jpg
DominatorPro_.jpg
DominatorPro_.jpg

The original report as published on HackerOne, by e3xpl0it. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 prettyPhoto plugin read the URL fragment and inserted it into the page without sanitising it, allowing HTML and script to be interpreted.

Impact

An attacker could run script in the site's context for users who open a crafted link; the report says it works in Firefox, Chrome and IE.

What the attacker needed

Victim opens a crafted link

The fix

The plugin should be upgraded or the fragment value should be filtered before being inserted into the page.

How it was found

  1. Open the target subdomain in a browser.
  2. Append a crafted fragment starting with prettyPhoto and containing an SVG with an onload handler.
  3. The browser executes the script and shows an alert with the document domain.

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.

A DOM-based XSS bug happens when a page takes part of the address after the # and puts it into the page without cleaning it. An attacker can make a link that runs their script when someone opens it.

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 e3xpl0it

View all

5 more disclosed reports, best first.

More from Uber

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.