Saturday, June 18, 2011

Acrobat Memory Corruption Denial of Service (DoS) Exploit - CVE-2011-2105

Adobe released their Security updates to cover several critical vulnerabilities in Adobe Reader X(10.01) and earlier version for Windows, Adobe Reader X (10.0.3) and earlier versions for Macintosh, and Adobe Acrobat X (10.0.3) and earlier versions for Windows and Macintosh.

One of the vulnerability (CVE-2011-2105) has been disclosed in public through Exploit-DB.

PoC Details: 
The following JS was the problem point inside the PDF file (Open the PoC file by a text editor):
/*****************************************************************************/
var temp;
for(var i=0;i<=8;i++)
{
temp+=temp+temp+"A";
}
var result = temp;
try{
viewState= result;
}catch(e){}
dirty; // Important!
/*****************************************************************************/

Solution:
Apply an update

Adobe recommends all users upgrade to Adobe Reader and Acrobat 10.1, 9.4.5, or 8.3. APSB11-16 contains more details. Please also consider the following workarounds:

Use the Microsoft Enhanced Mitigation Experience Toolkit

The Microsoft Enhanced Mitigation Experience Toolkit (EMET) can be used to help prevent exploitation of this and other vulnerabilities.

Enable DEP in Microsoft Windows

Consider enabling Data Execution Prevention (DEP) in supported versions of Windows. DEP should not be treated as a complete workaround, but it can mitigate the execution of attacker-supplied code in some cases. Microsoft has published detailed technical information about DEP in Security Research & Defense blog posts "Understanding DEP as a mitigation technology" part 1 and part 2. DEP should be used in conjunction with the application of patches or other mitigations described in this document.

Note that when relying on DEP for exploit mitigation, it is important to use a system that supports Address Space Layout Randomization (ASLR) as well. ASLR is not supported by Windows XP or Windows Server 2003 or earlier. ASLR was introduced with Microsoft Windows Vista and Windows Server 2008. Please see the Microsoft SRD blog entry: On the effectiveness of DEP and ASLR for more details.

Disable JavaScript in Adobe Reader and Acrobat

Disabling JavaScript helps to reduce attack surface and mitigates some exploitation techniques. If this workaround is applied to updated versions of Adobe Reader and Acrobat, it may protect against future vulnerabilities.

To disable JavaScript in Adobe Reader:

    Open Adobe Acrobat Reader.
    Open the Edit menu.
    Choose the Preferences... option.
    Choose the JavaScript section.
    Uncheck the Enable Acrobat JavaScript checkbox.

Note that when JavaScript is disabled, Adobe Reader and Acrobat prompt to re-enable JavaScript when opening a PDF that contains JavaScript.

Prevent Internet Explorer from automatically opening PDF documents

The installer for Adobe Reader and Acrobat configures Internet Explorer to automatically open PDF files without any user interaction. This behavior can be reverted to the safer option of prompting the user by importing the following as a .REG file:

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\AcroExch.Document.7]
    "EditFlags"=hex:00,00,00,00

Disable the displaying of PDF documents in the web browser

Preventing PDF documents from opening inside a web browser reduces attack surface. If this workaround is applied to updated versions of Adobe Reader and Acrobat, it may protect against future vulnerabilities.

To prevent PDF documents from automatically being opened in a web browser with Adobe Reader:

    Open Adobe Acrobat Reader.
    Open the Edit menu.
    Choose the Preferences... option.
    Choose the Internet section.
    Uncheck the Display PDF in browser checkbox.


Reference:
http://www.adobe.com/support/security/bulletins/apsb11-16.html
http://www.kb.cert.org/vuls/id/264729
http://secunia.com/advisories/43269/

0 comments: