Hi,
Can anyone suggest tools or an approach to doing a source code “Security Review” of some JavaScript libraries. Particularly Cross-site scripting (XSS) activities potentially left by an unscrupulous individual.
Ideally a something like the “RATS - Rough Auditing Tool for Security” which can be used for JavaScript, which parses the source code for key words or constructs that indicate a potential vulnerability.
Or
Add to my list of things to pay special attention to / do …
* Check MD5Sum (if there is one!)
* JavaScript Lint (www.javascriptlint.com)
* JS Lint (www.jslint.com)
Look out for following key words ( grep is primed and ready for action):
- Javascript, eval, forms, elements, cookie, href, src
- location, hash, host, hostname, href, pathname, port, protocol, search,
- assign, reload replace,
- url, onload, fromCharCode
- Protocols - http ftp ssh telnet (any others?)
- &#\d\d\d Unicode?
Thanks in advance
Mike