Amazon Linux 2 : sudo (ALAS-2019-1315)

High Nessus Plugin ID 129851

Synopsis

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

Description

When sudo is configured to allow a user to run commands as an arbitrary user via the ALL keyword in a Runas specification, it is possible to run commands as root by specifying the user ID -1 or 4294967295.

This can be used by a user with sufficient sudo privileges to run commands as root even if the Runas specification explicitly disallows root access as long as the ALL keyword is listed first in the Runas specification. (CVE-2019-14287)

Further details can be found here:
https://www.sudo.ws/alerts/minus_1_uid.html

A flaw was found in the way sudo parsed tty information from the process status file in the proc filesystem. A local user with privileges to execute commands via sudo could use this flaw to escalate their privileges to root.(CVE-2017-1000367)

It was found that the original fix for CVE-2017-1000367 was incomplete. A flaw was found in the way sudo parsed tty information from the process status file in the proc filesystem. A local user with privileges to execute commands via sudo could use this flaw to escalate their privileges to root.(CVE-2017-1000368)

Solution

Run 'yum update sudo' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALAS-2019-1315.html

Plugin Details

Severity: High

ID: 129851

File Name: al2_ALAS-2019-1315.nasl

Version: 1.3

Type: local

Agent: unix

Published: 2019/10/15

Updated: 2019/11/12

Dependencies: 12634

Risk Information

Risk Factor: High

CVSS v2.0

Base Score: 9

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

CVSS v3.0

Base Score: 8.8

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

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:sudo, p-cpe:/a:amazon:linux:sudo-debuginfo, p-cpe:/a:amazon:linux:sudo-devel, cpe:/o:amazon:linux:2

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

Patch Publication Date: 2019/10/14

Vulnerability Publication Date: 2017/06/05

Reference Information

CVE: CVE-2017-1000367, CVE-2017-1000368, CVE-2019-14287

ALAS: 2019-1315

IAVA: 2019-A-0378