In the OWASP Testing Guide, it has a whole section called "Client-Side Testing." This section has to do with testing for things such as DOM-based XSS, JavaScript execution, HTML injection, Client-Side URL Redirect, etc. The examples in the testing guide for the first four vulnerabilities (the ones I just listed) all include code that access document.location
.
My question is, what other ways are there for these kinds of vulnerabilities to be introduced into a web page without accessing document.location
(or window.location
or just plain location
)? In other words, if a page does not ever access document.location
, is it definitely free from these vulnerabilities? If not (and I'm sure it's not), could you please provide some other examples of vulnerable code?