Amazon Linux AMI : tomcat8 / tomcat80,tomcat7 (ALAS-2017-913)

Medium Nessus Plugin ID 104179

Synopsis

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

Description

A vulnerability was discovered in Tomcat where if a servlet context was configured with readonly=false and HTTP PUT requests were allowed, an attacker could upload a JSP file to that context and achieve code execution. (CVE-2017-12617)

Solution

Run 'yum update tomcat8' to update your system.

Run 'yum update tomcat80' to update your system.

Run 'yum update tomcat7' to update your system.

See Also

https://alas.aws.amazon.com/ALAS-2017-913.html

Plugin Details

Severity: Medium

ID: 104179

File Name: ala_ALAS-2017-913.nasl

Version: 3.4

Type: local

Agent: unix

Published: 2017/10/27

Modified: 2018/04/18

Dependencies: 12634

Risk Information

Risk Factor: Medium

CVSS v2.0

Base Score: 6.8

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

CVSS v3.0

Base Score: 8.1

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

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:tomcat7, p-cpe:/a:amazon:linux:tomcat7-admin-webapps, p-cpe:/a:amazon:linux:tomcat7-docs-webapp, p-cpe:/a:amazon:linux:tomcat7-el-2.2-api, p-cpe:/a:amazon:linux:tomcat7-javadoc, p-cpe:/a:amazon:linux:tomcat7-jsp-2.2-api, p-cpe:/a:amazon:linux:tomcat7-lib, p-cpe:/a:amazon:linux:tomcat7-log4j, p-cpe:/a:amazon:linux:tomcat7-servlet-3.0-api, p-cpe:/a:amazon:linux:tomcat7-webapps, p-cpe:/a:amazon:linux:tomcat8, p-cpe:/a:amazon:linux:tomcat8-admin-webapps, p-cpe:/a:amazon:linux:tomcat8-docs-webapp, p-cpe:/a:amazon:linux:tomcat8-el-3.0-api, p-cpe:/a:amazon:linux:tomcat8-javadoc, p-cpe:/a:amazon:linux:tomcat8-jsp-2.3-api, p-cpe:/a:amazon:linux:tomcat8-lib, p-cpe:/a:amazon:linux:tomcat8-log4j, p-cpe:/a:amazon:linux:tomcat8-servlet-3.1-api, p-cpe:/a:amazon:linux:tomcat8-webapps, p-cpe:/a:amazon:linux:tomcat80, p-cpe:/a:amazon:linux:tomcat80-admin-webapps, p-cpe:/a:amazon:linux:tomcat80-docs-webapp, p-cpe:/a:amazon:linux:tomcat80-el-3.0-api, p-cpe:/a:amazon:linux:tomcat80-javadoc, p-cpe:/a:amazon:linux:tomcat80-jsp-2.3-api, p-cpe:/a:amazon:linux:tomcat80-lib, p-cpe:/a:amazon:linux:tomcat80-log4j, p-cpe:/a:amazon:linux:tomcat80-servlet-3.1-api, p-cpe:/a:amazon:linux:tomcat80-webapps, 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: 2017/10/26

Exploitable With

Core Impact

Metasploit (Tomcat RCE via JSP Upload Bypass)

Elliot (Apache Tomcat for Windows HTTP PUT Method File Upload)

Reference Information

CVE: CVE-2017-12617

ALAS: 2017-913