You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.
<metacharset="utf-8"><p>alert(1) in this origin</p><p><ahref="?xss=XSS">give it a try</a></p><script>if(0){<?phpechopreg_replace('/}[\w\W]*{|</','_',$_GET['xss']); ?>}</script>
<!--
<?php readfile(__FILE__); ?>
Solution
The solution is based on abusing an ES3 feature that never made it into the standard but got prematurely implemented in MSIE: The colon-colon operator.
What happens here is the following: MSIE allows to bind events to elements using the colon-colon operator. This code construct bypasses the strict filter regex the challenge is using and thereby introduces event handling inside the if(0) block. A load-event is being used on self, having the same effect as a window.onload.