Skip to content
Info disclosure Disclosed report

XSS in the 'history' parameter of about/sessionrestore

Muneaki Nishimura Follow

Originally disclosed on Mozilla

  • Fixed in 31 days
  • Paid in 22 days
  • Disclosed after 31 days
Text
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.37 Safari/537.36

Steps to reproduce:

The page of /about/sessionrestore opens specified URL from the input parameter 'history' without any check.
If an attacker specifies an javascript: URL like below then it leads to XSS vulnerability on localhost.
http://localhost:6571/about/sessionrestore?history=%7B%22history%22%3A%5B%22javascript%3Aalert%28document.location%29%22%5D%2C%22currentPage%22%3A-1%7D

The following URL is a PoC of this issue.
mallory.csrf.jp/ios/session.html


Actual results:

An alert dialog with a current URL starting with http://localhost is shown.


Expected results:

javascript: URL should be ignored.

The original report as published on Mozilla's Bugzilla, by Muneaki Nishimura. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A high-severity info disclosure bug in General. Mozilla made it public on 20 April 2016.

About Info disclosure

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Muneaki Nishimura

View all

74 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.