Youtube XSS [SOLVED]
It has nothing to do with the "IF_HTML_FUNCTION?" bit, I'm really not sure where that originated from. This was caused by the unclosed script tag(s), and then having some random text before entering HTML code. The HTML code would then not be filtered out. This also allowed javascript through attributes like onload and onerror.
"<script>randomstuff<h1>Test</h1><script>" would have worked fine too, and I think the last script tag was even unnecessary in some cases.
stealth- wrote: It has nothing to do with the "IF_HTML_FUNCTION?" bit, I'm really not sure where that originated from. This was caused by the unclosed script tag(s), and then having some random text before entering HTML code. The HTML code would then not be filtered out. This also allowed javascript through attributes like onload and onerror.
"<script>randomstuff<h1>Test</h1><script>" would have worked fine too, and I think the last script tag was even unnecessary in some cases.
Thanks, I knew why it failed, I just didn't understand why they used IF_HTML_FUNCTION and I didn't have time to test this myself.