Amazon Linux AMI : ImageMagick (ALAS-2016-699) (ImageTragick)

Critical Nessus Plugin ID 91047

Synopsis

The remote Amazon Linux AMI host is missing a security update.

Description

It was discovered that ImageMagick did not properly sanitize certain input before passing it to the delegate functionality. A remote attacker could create a specially crafted image that, when processed by an application using ImageMagick or an unsuspecting user using the ImageMagick utilities, would lead to arbitrary execution of shell commands with the privileges of the user running the application.
(CVE-2016-3714)

It was discovered that certain ImageMagick coders and pseudo-protocols did not properly prevent security sensitive operations when processing specially crafted images. A remote attacker could create a specially crafted image that, when processed by an application using ImageMagick or an unsuspecting user using the ImageMagick utilities, would allow the attacker to disclose the contents of arbitrary files.
(CVE-2016-3715 , CVE-2016-3716 , CVE-2016-3717)

A server-side request forgery flaw was discovered in the way ImageMagick processed certain images. A remote attacker could exploit this flaw to mislead an application using ImageMagick or an unsuspecting user using the ImageMagick utilities into, for example, performing HTTP(S) requests or opening FTP sessions via specially crafted images. (CVE-2016-3718)

Note: This update contains an updated /etc/ImageMagick/policy.xml file that disables the EPHEMERAL, HTTPS, HTTP, URL, FTP, MVG, MSL, TEXT, and LABEL coders. If you experience any problems after the update, it may be necessary to manually adjust the policy.xml file to match your requirements. Please take additional precautions to ensure that your applications using the ImageMagick library do not process malicious or untrusted files before doing so.

Solution

Run 'yum update ImageMagick' to update your system.

See Also

https://alas.aws.amazon.com/ALAS-2016-699.html

Plugin Details

Severity: Critical

ID: 91047

File Name: ala_ALAS-2016-699.nasl

Version: 2.10

Type: local

Agent: unix

Published: 2016/05/12

Updated: 2019/04/11

Dependencies: 12634

Risk Information

Risk Factor: Critical

CVSS v2.0

Base Score: 10

Temporal Score: 8.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

Temporal Vector: CVSS2#E:H/RL:OF/RC:C

CVSS v3.0

Base Score: 8.4

Temporal Score: 8

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:H/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:ImageMagick, p-cpe:/a:amazon:linux:ImageMagick-c++, p-cpe:/a:amazon:linux:ImageMagick-c++-devel, p-cpe:/a:amazon:linux:ImageMagick-debuginfo, p-cpe:/a:amazon:linux:ImageMagick-devel, p-cpe:/a:amazon:linux:ImageMagick-doc, p-cpe:/a:amazon:linux:ImageMagick-perl, cpe:/o:amazon:linux

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2016/05/11

Reference Information

CVE: CVE-2016-3714, CVE-2016-3715, CVE-2016-3716, CVE-2016-3717, CVE-2016-3718

ALAS: 2016-699