News for hackers. Stuff that matters.
Re:Google's XSS game by aetch on Thursday May 29, 2014 @09:18AM (#7816052)
Can you elaborate on this? I tried that and got "unexpected identifier" as a console error. Not sure how it works.
Re:Google's XSS game by tautvidas on Thursday May 29, 2014 @09:52AM (#7816198)
The point is to break out of the startTimer() function call, e.g.:

    startTimer('');foo();//');
The remaining '); can be commented out in order to not create any syntax errors.
Re:Google's XSS game by lazyjones on Thursday May 29, 2014 @09:55AM (#7816209)
SPOILER ALERT

I used this: 1'* alert()* '

(without the spaces needed for markdown here)

Re:Google's XSS game by rhubarbcustard on Thursday May 29, 2014 @10:24AM (#7816326)
Could you explain why the * works in there?
Re:Google's XSS game by lazyjones on Thursday May 29, 2014 @10:57AM (#7816522)
JS does automatic type conversion in this case, so it's syntactically correct to multiply a string with a number (or function result). We're just interested in the side-effects of alert(), so it doesn't really matter what kind of expression we use it in, as long as it parses correctly and causes alert() to be executed (evaluated).
Re:Google's XSS game by mariocarvalho on Sunday June 01, 2014 @12:39PM (#7829772)
Nice!