r/javascript • Front-End Engineer • Aug 09 '12

A JavaScript Security Flaw

http://blog.alexmaccaw.com/a-javascript-security-flaw
0 Upvotes

13 comments sorted by

View all comments

2

u/mythril no(fun).at(parties); Aug 10 '12

Sorry to be nitpicky, but can you show me what part of the Ecmascript spec causes this? Or what section of V8 or SpiderMonkey have this flaw?

If you find yourself scratching your head, think about what sits between your server and the JavaScript in this case.

If you still don't have it see if the same problem persists if you extract the JavaScript into a separate file and include it with a src="" attribute.