Header

Thu, 28 Aug 2008

Adobe APSB08-15 Patch Reversing
@

APSB08-15 is the latest adobe security advisory regarding a memory corruption vulnerabilty in Acrobat Reader versions <8.1.2

As expected, the advisory does not include technical details about the attack vector, So let's try to reverse the related Adobe patch to find more about this vulnerability. I'm going to use IDA 5.2 with patchdiff2 plugin (thanks to kris hint on this plug-in).

The patch is released as a MSI file. I used Greg Duncan's Less MSIèrables tool to examine the content of this patch:

Adobe has just updated the annots.api plugin file, so I should just build the IDA Database files for the old and updated annots.api files and pathdiff them. Eight matched functions in the results:

By getting the Xrefs of the first matched function and backtracing it, we get into the VTABLE setup routine for a method named "collectEmailInfo" of "Collab" object. There was nothing in Adobe JavaScript guide for this method, so by googling and reading the function code I got the below syntax:

doc.Collab.collectEmailInfo({to:"to addr",cc:"cc",bcc:"bcc",subj:"subject",msg:"msg body",...});

msg parameter seems to be a good candidate to overflow. Let's make a PDF file with the below javascript embedded in and test it:

Collab.collectEmailInfo({msg:"aaaaaa.....aaaaa"});    (32K of aaa in my case)

and here is the result:

the place where the access violation occurs was different from machine,os,state , so the chance of the successful exploitation via heap spray is low.

/behrang

Blog
Video
Research
QotW
Categories
about:us (28)
blog (9)
build-it (1)
cloud (9)
community (13)
conferences (53)
crypto (3)
fail (3)
foos (1)
fun (50)
goodbye (1)
Hope? (2)
howto (8)
imsojaded (2)
infosec-soapies (25)
infrastructure (3)
local (2)
mac (15)
management (4)
materials (3)
mindless-politics (4)
mindmaps (1)
PCI (2)
post-it (1)
privacy (5)
programming (5)
public (256)
qo[w|m|?] (5)
README (1)
real-world (13)
research (31)
reversing (4)
security-fyi (8)
security-news (6)
silly-yammerings (19)
tech-toys (3)
time-waster (6)
tin-foil-hat (6)
tools (39)
training (13)
tricks (1)
Uncategorized (3)
vendors (6)
videos (6)
vulnerability (4)
wasc (1)
webapps (6)
web_x.0 (2)
writing-advice (1)
zen-hacking (6)
Archives
March 2010 (3)
Feburary 2010 (2)
January 2010 (3)
December 2009 (4)
November 2009 (4)
October 2009 (3)
September 2009 (5)
August 2009 (9)
July 2009 (1)
June 2009 (5)
May 2009 (4)
April 2009 (10)
March 2009 (13)
Feburary 2009 (12)
January 2009 (11)
December 2008 (9)
November 2008 (8)
October 2008 (5)
September 2008 (5)
August 2008 (6)
July 2008 (6)
June 2008 (6)
May 2008 (2)
April 2008 (3)
March 2008 (7)
Feburary 2008 (12)
January 2008 (9)
December 2007 (8)
November 2007 (4)
October 2007 (9)
September 2007 (14)
August 2007 (18)
July 2007 (13)
June 2007 (17)
May 2007 (2)
July 2006 (1)
April 2006 (1)
August 2005 (1)
June 2005 (1)
May 2005 (2)
Archives
Conditions of use Privacy statement
Top of Page Legal stuff