Beware! You Can Get Hacked Just by Opening a 'JPEG 2000' Image

Researchers have disclosed a critical zero-day vulnerability in the JPEG 2000 image file format parser implemented in OpenJPEG library, which could allow an attacker to remotely execute arbitrary code on the affected systems.

Discovered by security researchers at Cisco Talos group, the zero-day flaw, assigned as TALOS-2016-0193/CVE-2016-8332, could allow an out-of-bound heap write to occur that triggers the heap corruption and leads to arbitrary code execution.

OpenJPEG is an open-source JPEG 2000 codec. Written in C language, the software was developed for coding and encoding JPEG2000 images, a format that is often used for tasks like embedding image files within PDF documents through popular software including PdFium, Poppler, and MuPDF.

Hackers can exploit the security vulnerability by tricking the victim into opening a specially crafted, malicious JPEG2000 image or a PDF document containing that malicious file in an email.

The hacker could even upload the malicious JPEG2000 image file to a file hosting service, like Dropbox or Google Drive, and then send that link to the victim.

Once downloaded to the system, it would create a way for hackers to remotely execute malicious code on the affected system.

The flaw was caused "due to an error while parsing mcc records in the jpeg2000 file,...resulting in an erroneous read and write of adjacent heap area memory," Cisco explained in its advisory.

"Careful manipulation of heap layout and can lead to further heap metadata process memory corruption ultimately leading to code execution under attacker control."

The researchers successfully tested the JPEG 2000 image exploit on the OpenJPEG openjp2 version 2.1.1. The flaw was discovered by Aleksandar Nikolic from the Cisco Talos Security team.

The team reported the zero-day flaw to OpenJPEG developers in late July, and the company patched the flaw last week with the release of version 2.1.2.

The vulnerability has been assigned a CVSS score of 7.5, categorizing it as a high-severity bug.


Email:

Fake WhatsApp email claims someone you know or your friend sent you a picture, implying it is attached.
Attached zip contains an exe virus or trojan horse.
Spoofs WhatsApp.com in From headers.
Even though the Asprox botnet put WhatApp on the malware map, I don't think these are from Asprox at all.

Subject:  A friend of yours has just sent you a image 
[WhatsApp logo]
Hi!

Someone you know has just sent you a pic in WhatsApp. Open attachments to look it up.

2013 WhatsApp Inc

  IMG003299.zip (64)
Subject: Someone you’re acquainted with has just sent you a photo
[WhatsApp logo]
Hi!

A friend of yours has just sent you a pic in WhatsApp. Open attachments to look it up.

2013 WhatsApp Inc
 
   IMG003299.zip (64)
Subject: Your friend has just sent you a picture
[WhatsApp logo]
Hi!

Somebody has just sent you a picture in WhatsApp. Open attachments to look at it.

© 2013 WhatsApp Inc
  
   IMG003299.zip (64)
Subject: A friend of yours has just sent you a photo
[WhatsApp logo]

Hello!

Your friend has just sent you a photograph in WhatsApp. Open attachments to to check it out.

Š 2013 WhatsApp Inc
Picture of fake WhatsApp email with attached virus.
Picture of fake WhatsApp email with attached virus, version 2.

Header Examples:

Spoofs whatsapp.com in From headers and gmail or yahoo in Envelope headers.
cbl.abuseat.org classifies these as cutwail spambots.
Received: from [2.88.181.150]
   X-Envelope-From: fictionjs47 @gmail.com
   From: "WhatsApp" <messages @whatsapp.com>
   Subject:  Someone you're acquainted with has just sent you a photo

Received: from 114-44-75-87.dynamic.hinet.net [114.44.75.87]
   X-Envelope-From: rippersd @yahoo.com
   From: "WhatsApp" <messages @whatsapp.com>
   Subject: Someone you know has just sent you a photo

Received: from host-92.103-43-115.dynamic.totalbb.net.tw [115.43.103.92]
   X-Barracuda-Envelope-From: mescaline91 @yahoo.com
   From: "WhatsApp" <messages @whatsapp.com>
   Subject: Your friend has just sent you a picture

Received: from [115.133.188.177]
   X-Barracuda-Envelope-From: resellgz @yahoo.com
   Subject: Someone you know has just sent you a picture
   From: "WhatsApp" <messages @whatsapp.com>

Received: from cab16.pndsl.co.uk [80.229.243.221]
   X-Envelope-From: sedimentationn64 @gmail.com
   From: "WhatsApp" <messages @whatsapp.com>
   Subject: Someone you know has just sent you a photo

Received: from [27.54.176.254]
   X-Envelope-From: iranjk @yahoo.com
   Subject: A friend of yours has just sent you a photo
   From: "WhatsApp" <{messages @whatsapp.com}>

Attachment / Link Samples:

11 December 2013

IMG003299.zip containing IMG003299.exe | VirusTotal report | Malwr.com report | File-Analyzer.net report

7 March 2014

IMG300089222.zip containing IMG300089222.exe
VirusTotal report 
AntiVir  TR/Dropper.Gen  
Avast   Win32:Trojan-gen  
Bkav   HW32.CDB.9d12  20140306
ByteHero  Trojan.Malware.Obscu.Gen.002  
Commtouch  W32/Trojan.TIGL-1249  
ESET-NOD32  Win32/Spy.Zbot.AAU  
Ikarus   Trojan-Spy.Agent  
Kaspersky  Trojan-Spy.Win32.Zbot.rsfr  
Kingsoft  Win32.Troj.Generic.a.(kcloud)  
Panda   Suspicious file  
Qihoo-360  HEUR/Malware.QVM07.Gen  
Sophos   Mal/Generic-S  
Symantec  Trojan.Zbot  
TrendMicro  TROJ_FORUCON
Malwr.com report 
File-Analyzer.net report 
Contains functionality to record screenshots Show sources
Contains functionality to retrieve information about pressed keystrokes
Opens a port and listens for incoming connection (possibly a backdoor)
Drops:
 C:\Documents and Settings\Administrator\Local Settings\Temp\Ofmuek\doatuk.exe
 C:\WINDOWS\system32\drivers\275f1.sys
Binary may include packed or encrypted data
Creates driver files
Creates files inside the driver directory
Contains functionality to inject threads in other processes
Queries the volume information (name, serial number etc) of a device

Comments