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
Theory: learn the topic
To submit a flag, log in.