fb55/htmlparser2

Parsing error

Opened this issue · 0 comments

Hello, I have encountered an issue while using it. I hope you can help me answer my questions. Thank you very much

html

<iframe src=`http://xssme.html5sec.org/?xss=<iframe onload=%22xhr=new XMLHttpRequest();xhr.open('GET','http://html5sec.org/xssme2',true);xhr.onreadystatechange=function(){if(xhr.readyState==4%26%26xhr.status==200){alert(xhr.responseText.match(/'([^']%2b)/)[1])}};xhr.send();%22>`>

image

It should be src=xxxx

There is another question. How to perform secondary parsing when the src is an HTML tag

thanks