XSS in the 'history' parameter of about/sessionrestore
Originally disclosed on Mozilla
- Fixed in 31 days
- Paid in 22 days
- Disclosed after 31 days
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.
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.