G. Keenan wrote:The other day I got a message telling me it needed a security update. I was like, wtf security issue is there with a pdf reader?
Description:Remote exploitation of an invalid array indexing vulnerability in multiple versions of Adobe Systems Inc.'s Acrobat could allow an attacker to execute arbitrary code.
The vulnerability occurs when parsing a JBIG2 encoded stream inside of a PDF file. JBIG2 is an image encoding format that is primarily used for encoding monochrome images such as faxes.
When parsing the contents of a JBIG2 stream, a 32bit value that represents the page number on which an image appears is taken from the file. This value is used as an index into several arrays without being properly validated, which results in two possible vulnerabilities. In one case, it is possible to increment the value stored at an arbitrary address. In the second case, it is possible to write a pointer to data from the file to an arbitrary address. This second situation is highly exploitable, and can lead to the execution of arbitrary code.
Sources: iDefense Labs, 2009-02-13
Symantec Corp. (Trojan.Pidief.E), 2009-02-13
Analysis:Exploitation of this vulnerability allows the attacker to execute arbitrary code with the privileges of the user opening the file. The attacker will have to create a malicious PDF file and convince the victim to open it. This can be accomplished by embedding the PDF file into a iframe inside of a webpage, which will result in automatic exploitation once the page is viewed. The file could also be emailed as an attachment, or placed on a file share. In these cases, a user would have to manually open the file to trigger exploitation.
Exploitation of this vulnerability is made easier by using JavaScript inside of the PDF file, but this is not a requirement for triggering the vulnerability. However, current versions of the exploit will not function properly without JavaScript.
Please also refer to the threat report (ID: 482479) for more information. Symantec has reported that malicious code in the wild has exploited this vulnerability in targeted attacks.
iDefense considers this vulnerability to be of HIGH severity due to the possibility for arbitrary code execution with minimal interaction.
Detection:Acrobat Reader and Acrobat Professional versions 8.1.3 and 9.0.0 are reported to be vulnerable. Previous versions may also be affected.
Exploit:iDefense is currently unaware of any publicly available exploit for this vulnerability; however, Symantec has reported that this vulnerability has been used in targeted attacks.
Workaround:Consider the following mitigation methods:
Prevent PDF documents from being opened automatically by the Web browser
Disable JavaScript in the vulnerable products
Follow best practice methodologies by avoiding opening files from untrusted or unsolicited sources
Deploy DEP (Data Execution Prevention)