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.

Microsoft Windows IE Memory Corruption (Sept 18, 2013)

Microsoft has released an advisory addressing CVE-2013-3893 on Sept 17, 2013. This vulnerability found in Microsoft Internet Explorer affects Internet Explorer versions 8 and 9 and is being used in the wild by cyber-criminals. The issue could potentially affect all supported IE versions.

It has been observed that the vulnerable event handler has been used in a JavaScript file in an Adobe Flash Tool, and the JavaScript file was manipulated by hackers. However, we didn’t confirm which vulnerability the manipulated JavaScript is exploiting as the target server has stopped serving the final malicious code. The following image shows the manipulated JavaScript file:

image

A hacker can load the mentioned JavaScript file:

image

Dell SonicWALL Threat team has researched this vulnerability and released the following IPS signature:

  • 7377 Windows IE Memory Corruption Vulnerability

Dell SonicWALL has updated information on Sept 26, 2013 for this vulnerability as below.

Microsoft Windows IE Vulnerability(CVE-2013-3893) attacks spotted in the Wild (September 26, 2013)

Dell Sonicwall Threats Research team has found live attacks exploiting Internet Explorer Vulnerability (CVE-2013-3893). Last week we reported this Vulnerability and proactively started detecting and blocking the attack attempts.

We found the same HTML as reported by FireEye but being served by a different url. This means that the same exploit is being served from multiple locations. Once the exploit is successful, it similarly downloads jpg file which is an exe “xor” with 0x95 as a key.
Please refer Sonicalert for detailed binary analysis.

image

The malicious html above contains a code-sequence exploiting the IE vulnerability. This code uses heap spray and ROP techniques to bypass ASLR and DEP.

image

Here it uses cookie to track the visit.

image

Now it checks if it is exploitable and chooses the target accordingly.

image

Uses unescape function to set up spray and ROP chain for specific targets which corresponds to the in-memory bytes below.

image

The following code-sequence is responsible for the vulnerability.

image

We saw following crash when we separated the ASLR and DEP evasion code.

image

Some excerpts below show how the ROP chain is constructed and how shellcode is used.

image

image

Here Payload is encoded with “xor 0x9f”

image

The jpg is downloaded as shown.

image

Xor with 0x95 and the file decoded

image

image

We have implemented following signatures to detect the attack.

  • IPS:7377 Windows IE Memory Corruption Vulnerability
  • IPS:7417 Windows IE Memory Corruption Vulnerability 2
  • SPY:4119 Malformed-File html.TL.274
  • GAV: 24181 Unruy.JPG (Trojan)
  • GAV: 24180 Unruy.JPX (Trojan)

CVE-2013-3893 exploit actively serving malware (September 26, 2013)

Dell SonicWall Threats research team found a malicious site that exploits Microsoft Windows IE Vulnerability (CVE-2013-3893) to serve the attack payload onto the victims machine. More information about the actual vulnerability can be found on a Sonicalert covering the same attack case.

Infection Cycle:

The following steps illustrate the infection cycle:

Upon successful exploitation an encrypted file pretending to be an image logo.jpg is downloaded on the system. The extension of this file is misleading as it is actually a malicious Windows Executable XORed with 0x95 key as shown below:

The malware executable also ensures that it is named as “runrun.exe” before it infects the system, otherwise it terminates. The following screenshot shows the name check function:

The Trojan adds the following key to the Windows registry to enable startup after reboot:

  • HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun IEXPLORE “%Temp%runrun.exe””

The Trojan adds the following mutex on the system to mark its presence:

  • ;A>6gi3lW

We observed the Trojan attempting to connect to login.momoshop.org via SSL but we did not see any further network activity from the server side. We also observed the following hardcoded IP in the code, the server appears to be down at the time of writing this blog.

Dell SonicWALL Gateway AntiVirus provides protection against these threats with the following signature:

  • GAV: Unruy.JPG (Trojan)
  • GAV: Unruy.JPX (Trojan)