A new zero-day vulnerability has been found a Microsoft product that could allow attackers to install a malware via infected Word documents. The Microsoft Zero-day, coded CVE-2013-3906 is classified as a Remote code execution flaw, it is a flaw in a Microsoft graphics component that allows to target Microsoft Office users running on Windows Vista and Windows Server 2008.
“The vulnerability is a remote code execution vulnerability that exists in the way affected components handle specially crafted TIFF images. An attacker could exploit this vulnerability by convincing a user to preview or open a specially crafted email message, open a specially crafted file, or browse specially crafted web content. An attacker who successfully exploited the vulnerability could gain the same user rights as the current user. Users whose accounts are configured to have fewer user rights on the system could be less impacted than users who operate with administrative user rights.” reported the Microsoft Security Advisory (2896666)
The Microsoft zero-day vulnerability was reported by McAfee Labs senior security researcher Haifei Li, Microsoft company admitted to be informed of targeted attacks mostly in the Middle East and South Asia that exploited the flaw. The attack scenario is very simple, the attacker sends to the victims specifically-crafted Word documents with an infected attachment, once opened it he could gain complete control over a victim’s PC.
In a web-based attack scenario, an attacker could host a specially crafted website that is designed to exploit this flaw (e.g. watering hole attack) and then convince a user to visit the website with social engineering techniques. The attacker could conduct a spear phishing attack, it is enough a click on a link in an email message or in an Instant Messenger message that redirects users to the attacker’s website.
Currently the company is only aware of targeted attacks mostly in the Middle East and South Asia, with attackers sending unsuspecting victims crafted Word documents with a tainted attachment.
“This attachment will attempt to exploit the vulnerability by using a malformed graphics image embedded in the document itself.” “An attacker could exploit this vulnerability by convincing a user to preview or open a specially crafted email message, open a specially crafted file, or browse specially crafted web content.”
“In order to achieve code execution, the exploit combines multiple techniques to bypass DEP and ASLR protections. Specifically, the exploit code performs a large memory heap-spray using ActiveX controls (instead of the usual scripting) and uses hardcoded ROP gadgets to allocate executable pages. This also means the exploit will fail on machines hardened to block ActiveX controls embedded in Office documents (e.g. Protected View mode used by Office 2010) or on computers equipped with a different version of the module used to build the static ROP gadgets.”
The list of affected products is very long and gives us an idea on the entity of the wide exposure to the Microsoft Zero-day Vulnerability:
The only products not affected by the zero-day seems to be Windows 7 and 8 and Office 2013 and Office 365.
Microsoft has promptly released a temporary ‘Fix it‘ patch that blocks rendering of the vulnerable TIFF graphic format modifying the following registry key. Note that the workaround doesn’t address the root cause of the vulnerability but simply modifies the value for the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Gdiplus\DisableTIFFCodec = 1
Two considerations must be done in cases like this:
Microsoft in the advisory suggests to install EMET (the Enhanced Mitigation Experience Toolkit) that is able to mitigate this exploit in advance when any of the following mitigations are enabled for Office binaries:
Anyway it is strongly suggested to use protected View and block ActiveX controls in Office documents to avoid problems and limit user rights to the necessary level for their function, users whose accounts are configured to have fewer user rights on the system could be less impacted than users who operate with administrative user rights.