Mapbox · Report #53730
Stored xss in editor
Summary
On March 28th, 2015 @sahilsaif reported an issue with stored XSS in Mapbox Editor (www.mapbox.com/editor). We deployed a fix for this issue on March 30th, 2015.
On March 28th, 2015, I found a Stored XSS in Mapbox Editor.
Which was hosted on https://mapbox.com/editor Mapbox Editor is now deprecated and replaced with Mapbox Studio. (https://mapbox.com/studio).
This Issue was very straight forward.
Following was the Reproduction Steps.
-
Go to: http://mapbox.com/editor
-
Draw a line on the map using tool bar.
-
Give the name to the created line.
-
Enter Following JS payload on Name & Description Input Box.
"><img src=x onerror=prompt(111);>
-
Save it.
-
Reload the Page, Js payload will be executed.
Exploitation: You can share the created maps to other Mapbox users and js payload will be executed on the targetted browser.
Screenshot
https://www.dropbox.com/s/2lxd8fhw1bttwrh/Screen_Shot_2015-03-28_at_9.44.25_AM.png?dl=0
-Sahil
How it was found
The write-up for this report has not been downloaded yet, or the program disclosed it without one. Read it on HackerOne.