My solution was:
<img src="foo" onMouseOver="alert(33);"
Interesting to see so many people used onError instead.One of the hints says you can use onError()
I'm sure that's where most people are getting it from.
img src='garbage' onerror='script' is gauranteed to auto execute, where mouseover requires the user to mouse over the element.
onerror= is usually the one used in CTF and XSS examples!
Re:Google's XSS game
by dpacmittal on Thursday May 29, 2014 @11:54AM
(#7816842)
I used just onclick
just onerror="alert(1)" :)
Re:Google's XSS game
by JustMadMike on Thursday May 29, 2014 @08:44AM
(#7815914)
I did
<a onclick="alert('hakz');">click</a>
<img src='invalid_link.png' onerror="this.src='alert(1);'">