Microsoft BlueHat Challenge: web level 2

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

Change the Title


We have set the title to "CHANGE_THE_TITLE". You have to change it for any other, making sure that document.title returns the new value and the visible title in the TAB itself changes.

Rules


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
document.title = "CHANGE_THE_TITLE";

Object.defineProperty(Document.prototype, "title", {set: function()
{
	alert("Sorry! You can't set the title using document.title");
}});
Object.defineProperty = null;
/********** YOUR CODE SHOULD START BELOW THIS LINE **********/






/*********** YOUR CODE SHOULD END ABOVE THIS LINE ***********/
alert(document.title); // We should see a value different than "CHANGE_THE_TITLE"
</script>

Solution


document.title = "Amine CHERRAI";

You like it, share it

عربي