Microsoft BlueHat Challenge: web level 3

The BlueHat Challenge (the “Challenge”) presents a series of computer security problems of increasing difficulty to help users build and test their computer security skills. The Challenge has three tracks: reverse engineering, vulnerability discovery, and web design vulnerabilities...More detalis

Restore Alert


We have disabled the alert method of the window object. Can you bring it back?

Rules


You can't use the alert of any other iFrame, window, createPopup, etc.
You can't use Object.freeze, Object.seal, or the delete operator.
Your code can be any length inside the allowed area. No changes outside of it.

code


<script>
//The code below has already been executed. You can't change it
window.alert = new Function();
/********** YOUR CODE SHOULD START BELOW THIS LINE **********/






/*********** YOUR CODE SHOULD END ABOVE THIS LINE ***********/
alert("Wow! I'm working again!");
</script>

Solution


window.alert = window.__proto__.alert;

You like it, share it

عربي