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

realplayer-memory-corruption-adv.txt

realplayer-memory-corruption-adv.txt
Posted Oct 26, 2007
Authored by Piotr Bania | Site piotrbania.com

RealNetworks RealPlayer/RealOne Player/Helix Player all suffer from a memory corruption vulnerability in the handling of specially crafted .mov files. Successful exploitation may lead to code execution.

tags | advisory, code execution
SHA-256 | 4bfd216b1b49b47a039fd1ba81f14f6a6960a86d3d640af7a0c59b9a7cbffd35

realplayer-memory-corruption-adv.txt

Change Mirror Download


RealNetworks RealPlayer/RealOne Player/Helix Player Remote Memory
Corruption
by Piotr Bania <bania.piotr@gmail.com>
http://www.piotrbania.com



Original url (and formating):
http://www.piotrbania.com/all/adv/realplayer-memory-corruption-adv.txt

Severity: Critical - Remote code execution.

Software affected: Tested on RealPlayer Version 10.5(newest?) + Harmony
Technology
Build: 6.0.12.1483


Timeline: 02/09/2006 - Advisory sent to RealNetworks
05/09/2006 - Initial vendor response
25/10/2007 - Advisory released




I. BACKGROUND

Real*Player* is surely one of the most popular media players nowadays
with over a 200 million of users worldwide.


II. DESCRIPTION


The problem exists when Real*Player* parses a special crafted .mov file.
Here is the vulnerable code:

--//- snip ----//-----------------------------------------------------

62448F24 8B4D E2 MOV ECX,DWORD PTR SS:[EBP-1E] ; (*1)
62448F27 8B45 DE MOV EAX,DWORD PTR SS:[EBP-22]
62448F2A 2BC1 SUB EAX,ECX ; (*2)
62448F2C 8B53 17 MOV EDX,DWORD PTR DS:[EBX+17]
62448F2F 8D3401 LEA ESI,DWORD PTR DS:[ECX+EAX]
62448F32 8975 FC MOV DWORD PTR SS:[EBP-4],ESI
62448F35 3932 CMP DWORD PTR DS:[EDX],ESI
62448F37 0F82 C2000000 JB rvrender.62448FFF
62448F3D 8B75 DD MOV ESI,DWORD PTR SS:[EBP-23]
62448F40 81E6 FF000000 AND ESI,0FF
62448F46 3972 14 CMP DWORD PTR DS:[EDX+14],ESI
62448F49 0F85 B0000000 JNZ rvrender.62448FFF
62448F4F 8B75 DC MOV ESI,DWORD PTR SS:[EBP-24]
62448F52 81E6 FF000000 AND ESI,0FF
62448F58 837CF2 10 00 CMP DWORD PTR DS:[EDX+ESI*8+10],0
62448F5D 0F85 9C000000 JNZ rvrender.62448FFF
62448F63 8B75 08 MOV ESI,DWORD PTR SS:[EBP+8]
62448F66 0377 04 ADD ESI,DWORD PTR DS:[EDI+4]
62448F69 8B7A 04 MOV EDI,DWORD PTR DS:[EDX+4] ; (*3)
62448F6C 8BD1 MOV EDX,ECX
62448F6E 03F8 ADD EDI,EAX ; (*4)
62448F70 C1E9 02 SHR ECX,2
62448F73 F3:A5 REP MOVSD ; memcpy()
(*5)

--//- snip ----//-----------------------------------------------------


Attacker controls the value of ECX registers initialized at 0x62448F24
(*1).
This is very important since this values are future used with
initialization
of EDI register (destination for memcpy() (*5)) and its also used as an
size argument also for memcpy() (*5) operation.

The content of EAX register seems to be a const value, equal to 0x326.
It is transformed by sub operation in the following way: EAX = 0x326 -
ECX(*1).
From this point the value of the EAX remains unchanged.

At point (*3) you will see the initalization of EDI register, which will
now
point somewhere inside allocated heap memory block (the size of the parent
block seems to be always equal to 0xa8000). After the EDI initialization
it is normalized with EAX value, created in point (*2).

This leads to an obvious memory corruption, attacker can control ECX and
the
EDI register, it means that he can control the destination and the size
while coping the memory. This may lead to a potencial code execution
on the vulnerable machine.


III. IMPACT

Successful exploitation may allow the attacker to run arbitrary code in
context of user running Real*Player*.


IV. POC CODE

Due to severity of this bug i will not publish any poc codes.





best regards,
pb

--
--------------------------------------------------------------------
Piotr Bania - <bania.piotr@gmail.com> - 0xCD, 0x19
Fingerprint: 413E 51C7 912E 3D4E A62A BFA4 1FF6 689F BE43 AC33
http://www.piotrbania.com - Key ID: 0xBE43AC33
--------------------------------------------------------------------

- "The more I learn about men, the more I love dogs."


Login or Register to add favorites

File Archive:

September 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close