Amazon Linux AMI : cloud-init (ALAS-2016-763)

high Nessus Plugin ID 94683

Synopsis

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

Description

It was discovered that cloud-init in the Amazon Linux AMI wrote IAM role credentials from the instance metadata service to files readable by the root user in /var/lib/cloud. An application with root privileges, a container with access to the relevant files, or a root user of an AMI derived from a previously launched AMI could read and use the credentials. (IAM role credentials expire after 6 hours.)

Solution

Run 'yum update cloud-init' to update your system.

To delete the files which contain credentials, run 'rm /var/lib/cloud/instance/obj.pkl /var/lib/cloud/instances/*/obj.pkl'.

See Also

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

Plugin Details

Severity: High

ID: 94683

File Name: ala_ALAS-2016-763.nasl

Version: 2.2

Type: local

Agent: unix

Published: 11/11/2016

Updated: 4/18/2018

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Nessus

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:cloud-init, cpe:/o:amazon:linux

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

Patch Publication Date: 11/10/2016

Reference Information

ALAS: 2016-763