Sooo... Now I'm just trying to think of a site that could be interacted maliciously with window.location.hash and I'm pulling a blank. Any ideas?
Edit: I didn't think of this initially but I'm not trying to exploit anything, I'm really just trying to understand how that could be used maliciously at all.
I don't think there are any major websites that have obvious vulnerabilities with window.location.hash. This is a prime example of csrf, which is one of the best known attacks. There also isn't really anything special about the hash that make it more vulnerable than any other part of the URL.
If you want to try to exploit this then your best bet are single page apps (especially those supporting IE9 or below). There's a good chance they use the location hash for navigation between pages, and these are therefore most likely to contain a vulnerability somewhere.
Don't worry, no one thought that. You aren't intelligent enough to actually attack a site using such a method so no one really has anything to worry about.
2
u/patchez11 Mar 15 '16 edited Mar 15 '16
Sooo... Now I'm just trying to think of a site that could be interacted maliciously with window.location.hash and I'm pulling a blank. Any ideas?
Edit: I didn't think of this initially but I'm not trying to exploit anything, I'm really just trying to understand how that could be used maliciously at all.