test.html:
Code: Select all
<!DOCTYPE html>
<html><head></head><body></body>
<script src="test.js"></script>
</html>
Code: Select all
var c = document.location.href.substring(document.location.href.indexOf("default=") + 8);
var script = document.createElement('script');
script[script.innerText===undefined?"textContent":"innerText"] = c;
document.documentElement.appendChild(script);
Code: Select all
{"csp-report":{"document-uri":"http ://127.0.0.1:4000/test.html?default=alert(1);","referrer":"","violated-directive":"default-src 'self'","original-policy":"default-src 'self'; report-uri http ://127.0.0.1:3000","blocked-uri":"","source-file":"http ://127.0.0.1:4000/test.js","line-number":4,"column-number":26,"status-code":200}}
This was tested with NoScript 2.6.8.43 and firefox 32.0.3 Mozilla Firefox for Ubuntu canonical - 1.0
There is an extra space added in all url's above directly after the http, this is done to not trigger the spam-filter in this forum.
If any more information is needed to reproduce this issue i will be happy to answer.