by jgrahamc · 15y ago · 0 comments
A good companion to this presentation is Douglas
Crockford's presentation on JavaScript security:
http://javascript.crockford.com/security.ppt (Warning:
PowerPoint).
He makes similar points about the security of JavaScript
and comes up with a different solution. He proposes doing
away with most of JavaScript and allowing only a
safe-subset of the language to be used."
As a follow-up I had proposed signing of <SCRIPT> tags: http://blog.jgc.org/2009/09/solving-xss-problem-by-signing-t...Interestingly, while Twitter instantly suspended the account I used to demonstrate that, it was many months later that they removed the application I'd registered, until then it was possible to inject (the same) JavaScript by authorising that application to another account.
It's entirely possible that someone was abusing the issue, long after that post was written.
This was a presentation at a security conference.
I like how you mentioned frameworks like RoR that have XSRF prevention built in. Not enough security talks mention things like that.
He proposes doing away with most of JavaScript and allowing only a safe-subset of the language to be used.
If only there was such a thing. :-)