Security lab
Stored XSS
Inject a persistent script into a comment board. An admin bot reads comments every 30 seconds — steal its cookie.
Lab objective
Plant a stored XSS payload that exfiltrates the admin bot's cookie. The flag is in that cookie.
Tools you will use
- browser
- Burp Suite
What this lab teaches
This lab is a self-contained exercise hosted in an isolated, per-user sandbox. You are given a clear objective, the tools typically used for the technique, and a guided set of hints. Because every sandbox is disposable and network-isolated, you can experiment freely, make mistakes, and reset the environment without affecting any real system.
Hints & approach
- 01Post a comment with a <script> tag. The comment board does not sanitize input.
- 02The admin bot visits /comments every 30 seconds. Its cookie contains the flag.
- 03Exfiltrate with: <script>fetch('/flag/steal?c='+document.cookie)</script>
How the sandbox works
When you start the lab, Vulnarex provisions an isolated, per-user environment and opens it in a new tab. Each session has its own target and state, so nothing you do here can affect another learner or any external system. You can reset the environment at any time and re-approach the challenge from a clean slate.