Live data from Hacker News

Google's XSS game

xss-game.appspot.com

151–160 of 168 posts

Re: Google's XSS game

#151
post #15

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 ...

What's the trivial solution to this? I also wound up hosting the malicious file on my personal server...

[deleted]

Re: Google's XSS game

#152
Looks like using Google's jsapi callback to pop-up the alert doesn't work any more, so that tip in the last one is misleading.

(unless I was doing it wrong)

Re: Google's XSS game

#153
post #149
post #41

Earlier quoted context omitted.

POSTs can be forged too, if another vulnerable site permits Javascript on their domain accidentally (among other ways, but that's the big one).

Isn't that CSRF, though?

CSRF is what allows you to post. XSS is what happens after it is posted.

Re: Google's XSS game

#154

Fun! Level 6 failed to load any widgets, evil or otherwise, in Chrome; I had to switch to Firefox and redo the whole test. For my external script I used http://pastebin.com/raw.php?i=15S5qZs0 , although I don't think the lack of a .js extension there was the problem.

The regex is case sensitive. That's how I solved it.

haha so obvious yet I completely missed that! I went with a protocol-relative url [0]

[0] http://www.paulirish.com/2010/the-protocol-relative-url/

Re: Google's XSS game

#158
Is there more than way to attack level 3?

SPOILER: I used the "        html += ""; " untrusted injection, but after reading the hints it seems to be suggesting window.location and the postmessage to parent stuff.

Re: Google's XSS game

#159

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 ...

gist.github.com serves https, so you can use it whenever you need something sent over https.
Post reply on HN