Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1517341 - (CVE-2017-16834) CVE-2017-16834 pnp4nagios: privilege escalation via insecure permissions
CVE-2017-16834 pnp4nagios: privilege escalation via insecure permissions
Status: CLOSED NOTABUG
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20171115,repor...
: Security
Depends On: 1517344
Blocks: 1517347
  Show dependency treegraph
 
Reported: 2017-11-24 10:59 EST by Adam Mariš
Modified: 2017-11-30 11:18 EST (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-11-30 11:18:29 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adam Mariš 2017-11-24 10:59:56 EST
PNP4Nagios through 0.6.26 has /usr/bin/npcd and npcd.cfg owned by an unprivileged account but root code execution depends on these files, which allows local users to gain privileges by leveraging access to this unprivileged account.

References:

https://github.com/lingej/pnp4nagios/issues/140
http://www.openwall.com/lists/oss-security/2017/11/16/1
Comment 1 Adam Mariš 2017-11-24 11:00:37 EST
Created pnp4nagios tracking bugs for this issue:

Affects: epel-all [bug 1517344]
Comment 2 Siddharth Sharma 2017-11-30 11:18:29 EST
Analysis:

spec file used to build this package for Red Hat Gluster Storage 3 contains following line:

sed -i -e 's/^INSTALL_OPTS="-o $nagios_user -g $nagios_grp"/INSTALL_OPTS=""/' \

which should remove 'nagios' as default user and group on further check it was observed 
1. /etc/pnp4nagios is owned by root
2. /usr/sbin/npcd is owned by root
3. /etc/pnp4nagios/nagios.cfg is owned by root

default 'nagios' user cannot edit /etc/pnp4nagios/nagios.cfg as its owned by root.

Note You need to log in before you can comment on or make changes to this bug.