Vulnerabilities / Threats
5/4/2016
08:30 PM
Connect Directly
Google+
Twitter
RSS
E-Mail
50%
50%

Millions Of Web Servers Vulnerable To ImageMagick Attack

US-CERT issues advisory on 0-day flaws found in popular image processing tool.

LAS VEGAS – Interop 2016 -- A popular open-source image processing tool used in content management systems, social media, and other Web servers contains newly discovered vulnerabilities that could allow an attacker to wrest control of those systems.

Researchers yesterday disclosed details of the flaws found in the ImageMagick library of tools --before fully functioning patches were available because there were already exploits circulating.  Meantime, Metasploit modules have been created and are in the public review process.

US-CERT today issued an advisory about the vulnerabilities, and noted that the developers of ImageMagick have released updates to their software, versions 7.0.1-1 and 6.9.3-10. But the research firm that found and studied the flaws says the patches are "incomplete."

Moore and other security experts say the vulnerabilities are noteworthy and potentially serious, but the good news is that there are some configurations that won’t necessarily be at risk. And the image attacks are nowhere near as easy to pull off as many other Web exploits.

“Right now there’s lower-hanging fruit. You don’t need to burn an 0-day,” says Cameron Camp, security researcher at ESET, who will give a presentation on malware here this week. An attacker more easily could scan for other simpler vulnerabilities or exploit an open port, Camp says.

Some Web platforms have filters that content must pass before being sent to the ImageMagick library, so the attack isn’t necessarily lethal for all sites. “The systems most at risk are Web applications that allow users to upload media. This applies to forums, content management systems, image boards, and various social media networks,” Moore says. “Many blogging and hosting platforms also support ImageMagick as a plugin, but most of those require a valid user account before you can upload media.”

ImageMagick is a tool for resizing images uploaded to Web servers. “A PHP function calls ImageMagick to resize photos. If you can impersonate ImageMagick, you have a privileged user situation,” Camp says.

Mail.Ru’s Nikolay Ermishkin is credited with discovering several flaws in ImageMagick, including the CVE-2016-3716 vulnerability that could let an attacker remotely run code on a victim server. The flaw lies in insufficient filtering for a filename such that an attacker could slip malicious code into the file conversion process. 

A second flaw, CVE-2016-3716, described as a “file moving” bug, allows an attacker to move an image file to another file extension in any folder using ImageMagick’s “msl” protocol. “In real life it may be web services written in PHP, which allows to upload raw txt files and process images with ImageMagick,” Mail.Ru wrote in a post today. 

There are a total of five vulnerabilities, which have been dubbed "ImageTragick."

“The less-likely but more dangerous scenarios are systems that automatically process media stored by untrusted users. For example, a photo gallery service that uses ImageMagick to generate thumbnails from user uploads,” Moore says.

Meanwhile, experts recommend verifying all image files before sending them to ImageMagick for formatting, and using a policy file to disable the vulnerable ImageMagick coders. 

Kelly Jackson Higgins is Executive Editor at DarkReading.com. She is an award-winning veteran technology and business journalist with more than two decades of experience in reporting and editing for various publications, including Network Computing, Secure Enterprise ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
Register for Dark Reading Newsletters
Dark Reading Live EVENTS
INsecurity - For the Defenders of Enterprise Security
A Dark Reading Conference
While red team conferences focus primarily on new vulnerabilities and security researchers, INsecurity puts security execution, protection, and operations center stage. The primary speakers will be CISOs and leaders in security defense; the blue team will be the focus.
White Papers
Video
Cartoon Contest
Write a Caption, Win a Starbucks Card! Click Here
Latest Comment: No, you were supposed to display UNICODE characters!
Current Issue
Security Vulnerabilities: The Next Wave
Just when you thought it was safe, researchers have unveiled a new round of IT security flaws. Is your enterprise ready?
Flash Poll
[Strategic Security Report] Assessing Cybersecurity Risk
[Strategic Security Report] Assessing Cybersecurity Risk
As cyber attackers become more sophisticated and enterprise defenses become more complex, many enterprises are faced with a complicated question: what is the risk of an IT security breach? This report delivers insight on how today's enterprises evaluate the risks they face. This report also offers a look at security professionals' concerns about a wide variety of threats, including cloud security, mobile security, and the Internet of Things.
Slideshows
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2017-0290
Published: 2017-05-09
NScript in mpengine in Microsoft Malware Protection Engine with Engine Version before 1.1.13704.0, as used in Windows Defender and other products, allows remote attackers to execute arbitrary code or cause a denial of service (type confusion and application crash) via crafted JavaScript code within ...

CVE-2016-10369
Published: 2017-05-08
unixsocket.c in lxterminal through 0.3.0 insecurely uses /tmp for a socket file, allowing a local user to cause a denial of service (preventing terminal launch), or possibly have other impact (bypassing terminal access control).

CVE-2016-8202
Published: 2017-05-08
A privilege escalation vulnerability in Brocade Fibre Channel SAN products running Brocade Fabric OS (FOS) releases earlier than v7.4.1d and v8.0.1b could allow an authenticated attacker to elevate the privileges of user accounts accessing the system via command line interface. With affected version...

CVE-2016-8209
Published: 2017-05-08
Improper checks for unusual or exceptional conditions in Brocade NetIron 05.8.00 and later releases up to and including 06.1.00, when the Management Module is continuously scanned on port 22, may allow attackers to cause a denial of service (crash and reload) of the management module.

CVE-2017-0890
Published: 2017-05-08
Nextcloud Server before 11.0.3 is vulnerable to an inadequate escaping leading to a XSS vulnerability in the search module. To be exploitable a user has to write or paste malicious content into the search dialogue.