domxsswiki
domxsswiki copied to clipboard
Does Dom-based XSS be killed by browser nowadays?
I just tried the classic demo
<HTML>
<TITLE>Welcome!</TITLE>
Hi
<SCRIPT>
var pos=document.URL.indexOf("name=")+5;
document.write(document.URL.substring(pos,document.URL.length));
</SCRIPT>
<BR>
Welcome to our system
…
</HTML>
The testing url:
http://www.test-domain.me/welcome.html?name=SOME_SCRIPT_HERE
Would not work at this moment, since Safari, Firefox and Chrome would change the <, > to < , > by default.
Try name=<iframe src=javascript:alert(1)>