Posts

Microsoft Windows IE Vulnerability (CVE-2013-3897) attacks spotted in the wild (October 8, 2013)

The Dell SonicWALL Threats Research team observed reports of CVE-2013-3897 vulnerability being actively exploited in the wild. The vulnerability enables attacker to trigger memory corruption in Microsoft Internet Explorer via a crafted web site, allowing the remote attackers to execute arbitrary code upon successful exploitation. Microsoft released security update for this vulnerability and we highly recommend applying these security updates.

Dell SonicWALL customers were proactively secured from the attacks involving this 0-day exploit that started sometime in September, 2013.

Infection Cycle:

The exploit cycle begins with a highly obfuscated JavaScript being embedded on a compromised site. This JavaScript is responsible for redirecting the user to a remote server hosting the CVE-2013-3897 vulnerability exploit as seen below:

Here is a screenshot of an active exploit page that we captured from the wild:

It uses heap spray and ROP techniques to bypass ASLR and DEP. As seen below it uses unescape function to set up spray and ROP chain for specific targets:

If the exploit is successful, the shellcode will trigger the download of a malicious executable from a remote server. We saw similar attacks targeting CVE-2013-3893 two weeks ago.

The exploit fails on Windows XP even with with the language packs installed as we noticed only crashes.
We specifically reproduced the exploit on IE 8 running on Japanese XP that explains how the ROP gadgets were designed to target specific systems.
The Javascript code below shows shows checks for Japanese or Korean systems.

Debugging shows how the ROP chain is set up and how it executes it.

Which translates to

Another similar pattern seen here if we compare it to CVE-2013-3893 exploit, is a set of bytes being ‘xored’ with 0x94

The following bytes were used after a successful run to download and execute a malicious binary.

The downloaded malicious executable further connects to the same server to download another malicious executable pretending to be an image file firw.gif. This file is still actively being served by the remote server at the time of writing this alert.

Dell SonicWALL Gateway AntiVirus proactively blocked these attacks in the wild with the following signature:

  • GAV: Shellcode.GEN_12 (Trojan)
  • GAV: Magania.FFAD (Trojan)
  • GAV: Patched.OX (Trojan)

We additionally have added following signatures to detect the Exploit:

  • IPS: 7553 Windows IE Use-After-Free Vulnerability (MS13-080) 7
  • SPY: 4684 CVE-2013-3897

Microsoft Security Bulletin Coverage (Oct 8, 2013)

Dell SonicWALL has analyzed and addressed Microsoft’s security advisories for the month of October, 2013. A list of issues reported, along with Dell SonicWALL coverage information follows:

MS13-080 Cumulative Security Update for Internet Explorer (2879017)

  • CVE-2013-3872 Internet Explorer Memory Corruption Vulnerability
    There are no known exploits in the wild.
  • CVE-2013-3873 Internet Explorer Memory Corruption Vulnerability
    IPS: 7548 “Windows IE Use-After-Free Vulnerability (MS13-080) 2”
  • CVE-2013-3874 Internet Explorer Memory Corruption Vulnerability
    IPS: 7549 “Windows IE Use-After-Free Vulnerability (MS13-080) 3”
  • CVE-2013-3875 Internet Explorer Memory Corruption Vulnerability
    IPS: 7550 “Windows IE Use-After-Free Vulnerability (MS13-080) 4”
  • CVE-2013-3882 Internet Explorer Memory Corruption Vulnerability
    There are no known exploits in the wild.
  • CVE-2013-3885 Internet Explorer Memory Corruption Vulnerability
    IPS: 7551 “Windows IE Use-After-Free Vulnerability (MS13-080) 5”
  • CVE-2013-3886 Internet Explorer Memory Corruption Vulnerability
    IPS: 7552 “Windows IE Use-After-Free Vulnerability (MS13-080) 6”
  • CVE-2013-3893 Internet Explorer Memory Corruption Vulnerability
    IPS: 7377 “Windows IE Memory Corruption Vulnerability”
    IPS: 7417 “Windows IE Memory Corruption Vulnerability 2”
    SPY: 4119 “Malformed-File html.TL.274”
  • CVE-2013-3897 Internet Explorer Memory Corruption Vulnerability
    Please check Analysis for more details on the exploit seen in the wild.
    IPS: 7553 “Windows IE Use-After-Free Vulnerability (MS13-080) 7”
    SPY: 4684 “CVE-2013-3897”

MS13-081 Vulnerabilities in Windows Kernel-Mode Drivers Could Allow Remote Code Execution (2870008)

  • CVE-2013-3894 TrueType Font CMAP Table Vulnerability Vulnerability
    There are no known exploits in the wild.
  • CVE-2013-3888 DirectX Graphics Kernel Subsystem Double Fetch Vulnerability Vulnerability
    There are no known exploits in the wild.
  • CVE-2013-3881 Win32k NULL Page Vulnerability
    This is a local vulnerability.
  • CVE-2013-3880 App Container Elevation of Privilege Vulnerability
    There are no known exploits in the wild.
  • CVE-2013-3879 Win32k Use After Free Vulnerability
    This is a local vulnerability.
  • CVE-2013-3200 Windows USB Descriptor Vulnerability
    There are no known exploits in the wild.
  • CVE-2013-3128 Open Type Font Parsing Vulnerability
    SPY: 4683 “Malformed-File otf.MP.9”

MS13-082 Vulnerabilities in .NET Framework Could Allow Remote Code Execution (2878890)

  • CVE-2013-3861 JSON Parsing Vulnerability
    There are no known exploits in the wild.
  • CVE-2013-3860 Entity Expansion Vulnerability
    IPS: 6316 “Microsoft .NET Framework Entity Expansion DoS”
  • CVE-2013-3128 OpenType Font Parsing Vulnerability
    SPY: 4683 “Malformed-File otf.MP.9”

MS13-083 Vulnerability in Windows Common Control Library Could Allow Remote Code Execution (2864058)

  • CVE-2013-3195 Comctl32 Integer Overflow Vulnerability
    SPY: 4685 “Malformed-File exe.MP.7”

MS13-084 Vulnerabilities in Microsoft SharePoint Server Could Allow Remote Code Execution (2885089)

  • CVE-2013-3895 Parameter Injection Vulnerability
    IPS: 7555 “Microsoft SharePoint Server Remote Code Execution 4 (MS13-084)”
  • CVE-2013-3889 MIcrosoft Excel Memory Corruption Vulnerability
    There are no known exploits in the wild.

MS13-085 Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (2885080)

  • CVE-2013-3890 Microsoft Excel Memory Corruption Vulnerability
    There are no known exploits in the wild.
  • CVE-2013-3889 Microsoft Excel Memory Corruption Vulnerability
    There are no known exploits in the wild.

MS13-086 Vulnerabilities in Microsoft Word Could Allow Remote Code Execution (2885084)

  • CVE-2013-3892 Memory Corruption Vulnerability
    There are no known exploits in the wild.
  • CVE-2013-3891 Memory Corruption Vulnerability
    SPY: 4686 “Malformed-File doc.MP.14”

MS13-087 Vulnerability in Silverlight Could Allow Information Disclosure (2890788)

  • CVE-2013-3896 Silverlight Vulnerability
    There are no known exploits in the wild.