Live data from Hacker News

Google's XSS game

xss-game.appspot.com

1–10 of 168 posts

Re: Google's XSS game

#6
post #5

I completed the game, but I honestly don't know: why wouldn't inject a script tag directly in level 2 work?

The hint for level 3 reads:

  As before, using  ... as a payload won't work
  because the browser won't execute scripts added after the 
  page has loaded.
How do you solve level 3?

Re: Google's XSS game

#7
post #6
post #5

I completed the game, but I honestly don't know: why wouldn't inject a script tag directly in level 2 work?

The hint for level 3 reads: As before, using ... as a payload won't work because the browser won't execute scripts added after the page has loaded. How do you solve level 3?

try '>

Re: Google's XSS game

#8
post #6
post #5

I completed the game, but I honestly don't know: why wouldn't inject a script tag directly in level 2 work?

The hint for level 3 reads: As before, using ... as a payload won't work because the browser won't execute scripts added after the page has loaded. How do you solve level 3?

Similar to level 2 - just be careful about escaping out of the image src, and making sure the rest of the line is invalidated. Think about how you would do it if you were writing JS on your own...

Re: Google's XSS game

#10
Nice one; I gave up trying to solve the last with the http-only google.com/jsapi and hosted my own with https, but then it occurred to me that it's even more trivial than I thought!

Checking our stuff for this mistake now ...

Post reply on HN