Joe Vennix
Joe Vennix
This check doesn't actually seem useful, since it lacks the case-insensitive regex modifier. `JaVaScRiPt:` URLs work just as well as `javascript:`.
It would be a good idea to move any inline `` tags into their own files, and add a CSP `` tag that prevents inline scripts from running. That would...
@spadger thanks for the quick response. These XSS vulnerabilities are easily exploitable because swagger-ui's index.html takes a `?url` GET parameter, which the attacker can set to a malicious schema on...
@spadger I can't seem to reproduce the original issue; I changed the code to use `{{` instead of `{{{` and rebuilt, then used a schema with the following attribute: ```...
@spadger ahhh thanks for clearing that up. My eyes glazed right over your actual change - which indeed closed one out of the two XSS vulnerabilities in that template.
Perfect! On my Centos 5.5, I had to run: rpm -e --nodeps tar instead of: rpm -e --no-deps tar
@keithamu, love the idea of using ES6 proxies! I would have proposed that myself but wasn't sure what it would mean for supported browsers etc. Thanks for the quick response.
@keithamus, does chai have an idea of a testComplete() hook? If so, you could perhaps implement this without proxies, by raising after the test when a expect() is called but...
@wchen-r7 how do you feel about this? it would make the obfuscated os.js script way lighter.
Closing this since AFAICT its a dupe of #4636