Skip to main content
Challenges XSS: obfuscated payload chain
Web Easy Statically decoding a stored XSS payload without executing it in a browser Solves: 4

XSS: obfuscated payload chain

Author: CyberSamSU
Points
20

In the stored_comment.html page exported from the moderation queue, a Stored XSS payload has been injected via one of the user comments.

The attacker used a chain of eval(atob(...)) and String.fromCharCode(...) to hide the code. The page also contains a misleading test comment that is HTML-escaped (<script> — not executed in the browser).

Warning: do not open the file in a browser and do not execute the JS code — decode it statically! Unwrap the active stored XSS chain step by step to find where the payload sends the cookie and the flag inside. Flag format: BAYROQ{...} (the last 16 characters are lowercase hexadecimal digits).

Attached files
stored_comment.html Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −2 pts Log in
Hint 2 −4 pts Log in
Hint 3 −6 pts Log in
To submit a flag, log in.

First solvers

1. Mirjaxon Qaxxarov 25.11.2026
2. Odam 25.11.2026
3. , 27.11.2026
4. Doston Allayarov 28.11.2026