CVE-2015-5119(Recent Adobe Flash 0-day) Exploit in the wild

By

We called out in our previous SonicAlert that CVE-2015-5119 is very easy to exploit. It’s not a surprise that the exploit kits have already updated their arsenal to include this CVE. Here’s an analysis of a sample used by Nuclear Exploit Kit:

As you can see, the sample is heavily obfuscated. While many times, decompilation of obfuscated swf exploits is not perfect, this time it was successful. We used FlashDevelop IDE to ‘debug’ this sample. First we exported the ‘Scripts’ and the ‘binaryData’ section from this exploit and created a new Flex ActionScript project.

This is a typical 2 stage exploit where stage 1 loads bytes from ‘binaryData’ and decrypts it. This decrypted data is the 2nd stage SWF file which actually contains the exploit. We can see the key being passed to the decrypt routine:

This decrypt routine returns a Bytearray which contains stage2 SWF file. We used Actionscript’s trace functionality to dump this array. A trace statement was injected in the decryption routine to print this array to log file:

The log dumps the bytes

Looking at it in a hex view, we can see a compressed hex file.

Let’s decompile this file:

We can clearly see the vulnerability being exploited.

Sonicwall team has created the following signatures that protects customers from this exploit.

  • [GAV] CVE-2015-5119.B_3 (Exploit)
  • [GAV] CVE-2015-5119.A_12 (Exploit)
  • [GAV] CVE-2015-5119.A_11 (Exploit)
  • [GAV] CVE-2015-5119.A_10 (Exploit)
  • [GAV] CVE-2015-5119.A_9 (Exploit)
  • [GAV] CVE-2015-5119.A_8 (Exploit)
  • [GAV] CVE-2015-5119.A_7 (Exploit)
  • [GAV] CVE-2015-5119.TTY (Exploit)
  • [GAV] CVE-2015-5119.A_6 (Exploit)
  • [GAV] CVE-2015-5119.A_5 (Exploit)
  • [GAV] CVE-2015-5119.A_4 (Exploit)
  • [GAV] CVE-2015-5119.A_3 (Exploit)
  • [GAV] CVE-2015-5119.C_2 (Exploit)
  • [GAV] CVE-2015-5119.C (Exploit)
  • [GAV] CVE-2015-5119.B_2 (Exploit)
  • [GAV] CVE-2015-5119.B (Exploit)
  • [GAV] CVE-2015-5119.A_2 (Exploit)
  • [GAV] CVE-2015-5119.A (Exploit)
  • [GAV] CVE-2015-5119.DH_2 (Exploit)
  • [GAV] CVE-2015-5119.DH (Exploit)

Security News
The SonicWall Capture Labs Threat Research Team gathers, analyzes and vets cross-vector threat information from the SonicWall Capture Threat network, consisting of global devices and resources, including more than 1 million security sensors in nearly 200 countries and territories. The research team identifies, analyzes, and mitigates critical vulnerabilities and malware daily through in-depth research, which drives protection for all SonicWall customers. In addition to safeguarding networks globally, the research team supports the larger threat intelligence community by releasing weekly deep technical analyses of the most critical threats to small businesses, providing critical knowledge that defenders need to protect their networks.