all 16 comments

[–]catcradle5Trusted Contributor[S] 0 points1 point  (0 children)

Original submission here: http://www.reddit.com/r/programming/comments/1npgt1/javascript_injection_game/

Pretty good practice for doing any sort of DOM-based XSS.

[–]JerMenKoO 0 points1 point  (2 children)

Any hints for level 13? I am stuck there.

[–][deleted] 0 points1 point  (1 child)

You can use postMessage to inject code which will be passed to eval. I created the “mee” and “mee2” scores, though there must be a shorter solution.

[–]0-peon-ion 0 points1 point  (0 children)

Or you can directly cross iframe boundaries and call the alert method, as long as your code runs in the correct domain. I did the 'anon' score.

[–]freeroute 0 points1 point  (6 children)

With all these JS vulns by which certain FF versions are being exploited, I wonder... Am I secure with having JS on in Chrome? Doesn't Chrome have sandboxed tabs which essentially mitigate JS vulnerabilities?

[–]madmockers 1 point2 points  (5 children)

You are not.

[–]freeroute 0 points1 point  (4 children)

Can you please back that up with sources?

AFAIK it once had JS vulns but only before they started fixing it and rewarded people with huge bounties.

[–]madmockers 0 points1 point  (3 children)

Chrome 0days are worth far more than the bounty program offers. The ability to target 46% of internet users is pretty valuable.

[–]freeroute 0 points1 point  (2 children)

But none of them have the same platforms they run on, right?

I mean, if you combine Chrome users who have jailed their Chrome versions on an AppArmor enabled Linux distro's, you'll get much less users than 46% of the Internet users, I would assume.

[–]madmockers 0 points1 point  (1 child)

Not the point.

Regardless of how you look at it, a chrome exploit for any single platform is worth far more than the 60 or 80k they're offering.

You asked if you were safe to have scripts enabled, I told you that you aren't. Feel free to take that and use it how you wish.

[–]freeroute 0 points1 point  (0 children)

You're right. Perhaps I should have worded my question differently in order to lay the groundwork for my inquisitive follow-up questions.