Persistent XSS using JavaScript URLs
Originally disclosed on Mozilla
- Fixed in 36 days
- Paid in 37 days
- Disclosed after 36 days
Created attachment 8725859
conversation settings.PNG
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
Steps to reproduce:
Hi,
I discovered a persistent Corss-Site Scripting (XSS) vulnerability in Firefox Hello.
On every conversation, we can add a conversation title, a conversation URL and conversation comments. The URL can be anything, including javascript: or data: URIs.
Steps to reproduce the vulnerability:
1. Create a new conversation.
2. Edit the conversation details; set the URL value to "javascript:alert(document.domain)" and the conversation title & comments to something that would make a victim click on it.
3. Save the conversation details.
4. Share the conversation URL with the victim.
5. Wait until the victim clicks on the URL.
A few mentions:
1. The script is stored on the server and is automatically embedded in the page corresponding to our conversation.
2. The script runs in the security context of hello.firefox.org.
3. I successfully tested the vulnerability in Google Chrome and Firefox (latest versions for Windows 10). It probably works in Safari too. It cannot be reproduced in IE or mobile browsers because Firefox Hello does not support those browsers.
4. Being a persistent XSS, the XSS filter from Google Chrome does not protect against the vulnerability.
5. For successfully exploiting the vulnerability, some user interaction is required: visiting a link provided by the attacker and clicking on a button. However, this is perfectly plausible user interaction - that's what people do on the internet, they visit links and they click on buttons.
Example of page that contains embedded JavaScript code:
https://hello.firefox.com/Esid9OqPjOQ#fbWSfplg34-hTQJdzHI_7Q
Also, please see attached files.
Quick fix: do not allow javascript and data URLs. I would go a step further and I would allow only http:// and https:// URLs.
If I can be of help with anything more on this subject, please let me know.
Thank you,
Daniel Tomescu
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 medium-severity XSS bug in Client. Mozilla made it public on 7 April 2016.
About XSS
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.