Executive Summary

Summary
Title NGINX: Privilege escalation
Informations
Name GLSA-201701-22 First vendor Publication 2017-01-11
Vendor Gentoo Last vendor Modification 2017-01-11
Severity (Vendor) N/A Revision N/A

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:L/AC:L/Au:N/C:C/I:C/A:C)
Cvss Base Score 7.2 Attack Range Local
Cvss Impact Score 10 Attack Complexity Low
Cvss Expoit Score 3.9 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

Synopsis

Gentoo's NGINX ebuilds are vulnerable to privilege escalation due to the way log files are handled.

Background

nginx is a robust, small, and high performance HTTP and reverse proxy server.

Description

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.

Resolution

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

References

[ 1 ] CVE-2016-1247
http://nvd.nist.gov/nvd.cfm?cvename=CVE-2016-1247
[ 2 ] DSA-3701
https://www.debian.org/security/2016/dsa-3701
[ 3 ] Technical analysis https://legalhackers.com/advisories/Nginx-Exploit-Deb-Root-PrivEsc-CVE-2016-1247.html

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website:

https://security.gentoo.org/glsa/201701-22

Original Source

Url : http://security.gentoo.org/glsa/glsa-201701-22.xml

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-59 Improper Link Resolution Before File Access ('Link Following')

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 465

Nessus® Vulnerability Scanner

Date Description
2017-01-12 Name : The remote Gentoo host is missing one or more security-related patches.
File : gentoo_GLSA-201701-22.nasl - Type : ACT_GATHER_INFO
2016-10-26 Name : The remote Debian host is missing a security-related update.
File : debian_DSA-3701.nasl - Type : ACT_GATHER_INFO
2016-10-26 Name : The remote Ubuntu host is missing one or more security-related patches.
File : ubuntu_USN-3114-1.nasl - Type : ACT_GATHER_INFO

Alert History

If you want to see full details history, please login or register.
0
1
Date Informations
2017-01-13 13:24:47
  • Multiple Updates
2017-01-11 17:22:56
  • First insertion