Re:Anatomy of a Subtle JSON Vulnerability
by teej on Friday November 21, 2008 @12:36AM
(#371546)
Subtle? It's called Cross-Site Scripting and it's pretty well known. Hell, the Wikipedia entry (http://en.wikipedia.org/wiki/Cross-site_scripting#Cookie_sec...) even has some tips on how to secure against this particular case.
[ Parent
| on HN ]
Re:Anatomy of a Subtle JSON Vulnerability
by chrisbroadfoot on Friday November 21, 2008 @01:22AM
(#371591)
Actually, this is CSRF (and it's pretty smart - smarter than your average XSS attack).
script src-ing the JSON document is pretty clever.
It could be totally stopped by using a nonce in a header. You should already have implemented a nonce system for form submissions anyway.