GLSA-201701-22 : NGINX: Privilege escalation

This script is Copyright (C) 2017 Tenable Network Security, Inc.


Synopsis :

The remote Gentoo host is missing one or more security-related
patches.

Description :

The remote host is affected by the vulnerability described in GLSA-201701-22
(NGINX: Privilege escalation)

It was discovered that Gentoo’s default NGINX installation applied
similar problematic permissions on “/var/log/nginx” as Debian
(DSA-3701) and is therefore vulnerable to the same attack described in
CVE-2016-1247.

Impact :

A local attacker, who either is already NGINX’s system user or belongs
to NGINX’s group, could potentially escalate privileges.

Workaround :

Ensure that no untrusted user can create files in directories which are
used by NGINX (or an NGINX vhost) to store log files.

See also :

https://www.debian.org/security/2016/dsa-3701
http://www.nessus.org/u?e1440e63
https://security.gentoo.org/glsa/201701-22

Solution :

All NGINX users should upgrade to the latest ebuild revision:
# emerge --sync
# emerge --ask --oneshot --verbose '>=www-servers/nginx-1.10.2-r3'

Risk factor :

High / CVSS Base Score : 7.2
(CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 96416 ()

Bugtraq ID:

CVE ID: CVE-2016-1247

Ready to Amp Up Your Nessus Experience?

Get Nessus Professional to scan unlimited IPs, run compliance checks & more

Buy Nessus Professional Now