Memory corruption when Adobe Shockwave Player parses .dir media file  (CVE-2012-2031)

Document created by Robert Dell'Immagine Employee on May 7, 2012Last modified by Robert Dell'Immagine Employee on May 8, 2012
Version 2Show Document
  • View in full screen mode

INTRODUCTION

Adobe Shockwave Player is the Adobe plugin to many different browsers to view rich-media content on the web including animations, interactive presentations, and online entertainment.

 

Adobe Shockwave Player does not properly parse .dir media file, which causes a corruption in module IMLLib by opening a malformed file with an invalid value located in PoC repro03.dir at offset 0x3AD1 and 0x3AD5. 

 

This problem was confirmed in the following versions of Adobe Shockwave Player and MacOS X, other versions may be also affected.

 

Shockwave Player version 11.6.3r633, Module IMLLib.framework on MacOS X 10.7.2 (11C74)

 

CVSS Scoring System

 

The CVSS score is: 9

    Base Score: 10

    Temporal Score: 9

We used the following values to calculate the scores:

    Base score is: AV:N/AC:L/Au:N/C:C/I:C/A:C

    Temporal score is: E:POC/RL:U/RC:C

 

TRIGGERING THE PROBLEM

To trigger the problem a PoC file (repro03.dir) is available to interested parties.  Use Firefox or Safari to open the file and reproduce the vulnerability.

 

DETAILS

Program received signal EXC_BAD_ACCESS, Could not access memory.

Reason: KERN_PROTECTION_FAILURE at address: 0x00000009

0x045081fb in imMemDisposalCallbackControl ()

(gdb) bt

#0  0x045081fb in imMemDisposalCallbackControl ()

#1  0x070f47fd in VListGetNumEntries ()

#2  0x070e9aa7 in MovieMemoryDispose ()

#3  0x070e22d4 in MovieMemoryDispose ()

#4  0x070e2329 in MovieMemoryDispose ()

#5  0x070f0778 in MovieMemoryDispose ()

#6  0x070f0e15 in MovieMemoryDispose ()

#7  0x06ffe64a in TELscriptRef_GetPropertyInitsAsHandle ()

#8  0x06ffe7e8 in TELscriptRef_GetPropertyInitsAsHandle ()

#9  0x06fff579 in TELscriptRef_GetPropertyInitsAsHandle ()

#10 0x0700082d in TELscriptRef_GetPropertyInitsAsHandle ()

#11 0x06ffa691 in TETourGetCpuHogTicks ()

#12 0x06fa1684 in MovieInstAnimIdle ()

#13 0x01f524f4 in main ()

#14 0x01f526fa in main ()

#15 0x04531a64 in imNPMessageHandleMacEvent ()

#16 0x01f507cf in main ()

#17 0x01f535d0 in main ()

#18 0x01f48bcc in dyld_stub_Gestalt ()

#19 0x996bedd9 in CAOpenGLLayerDraw ()

#20 0x996be842 in -[CAOpenGLLayer _display] ()

#21 0x9968dff5 in CA::Layer::display ()

#22 0x9968df11 in -[CALayer display] ()

#23 0x99685aec in CA::Layer::display_if_needed ()

#24 0x99684883 in CA::Context::commit_transaction ()

#25 0x99684594 in CA::Transaction::commit ()

#26 0x99683b29 in CA::Transaction::observer_callback ()

#27 0x96f697be in __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ ()

#28 0x96f696fd in __CFRunLoopDoObservers ()

#29 0x96f3b917 in CFRunLoopRunSpecific ()

#30 0x96f3b798 in CFRunLoopRunInMode ()

#31 0x95638a7f in RunCurrentEventLoopInMode ()

#32 0x9563fd9b in ReceiveNextEventCommon ()

#33 0x9563fc0a in BlockUntilNextEventMatchingListInMode ()

#34 0x95c8c040 in _DPSNextEvent ()

#35 0x95c8b8ab in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()

#36 0x95c87c22 in -[NSApplication run] ()

#37 0x01036dd9 in nsXPTCStubBase::Stub249 ()

(gdb) x/i $pc

0x45081fb <imMemDisposalCallbackControl+117>:    movzwl 0x8(%edx),%eax

(gdb) i r $edx $eax

edx            0x1    1

eax            0xbfffaa0c    -1073763828

 

CREDITS

This vulnerability was discovered by Rodrigo Rubira Branco (https://twitter.com/bsdaemon) from the Qualys Vulnerability & Malware Research Labs (VMRL).

Attachments

    Outcomes