Coded Brain

Hi , I am an information security enthusiast from Nepal.

Intigriti 10k followers XSS challenge

Last week Intigriti had posted an XSS challenge on Twitter. I decided to give it a look. Today , in this article I am going to explain how I solved this challenge. Here is the code, <script> const whitelist = [‘’,’’]; var url = new URL(location.hash.substr(1)); if(whitelist.indexOf(url.hostname) > -1){ document.write(“Redirecting you to ” + encodeURIComponent(url.href) …