ID CVE-2016-9565
Summary MagpieRSS, as used in the front-end component in Nagios Core before 4.2.2 might allow remote attackers to read or write to arbitrary files by spoofing a crafted response from the Nagios RSS feed server. NOTE: this vulnerability exists because of an incomplete fix for CVE-2008-4796.
References
Vulnerable Configurations
  • Nagios 4.2.1
    cpe:2.3:a:nagios:nagios:4.2.1
CVSS
Base: 7.5 (as of 16-12-2016 - 13:46)
Impact:
Exploitability:
CWE CWE-284
CAPEC
  • Embedding Scripts within Scripts
    An attack of this type exploits a programs' vulnerabilities that are brought on by allowing remote hosts to execute scripts. The attacker leverages this capability to execute scripts to execute his/her own script by embedding it within other scripts that the target software is likely to execute. The attacker must have the ability to inject script into script that is likely to be executed. If this is done, then the attacker can potentially launch a variety of probes and attacks against the web server's local environment, in many cases the so-called DMZ, back end resources the web server can communicate with, and other hosts. With the proliferation of intermediaries, such as Web App Firewalls, network devices, and even printers having JVMs and Web servers, there are many locales where an attacker can inject malicious scripts. Since this attack pattern defines scripts within scripts, there are likely privileges to execute said attack on the host. Of course, these attacks are not solely limited to the server side, client side scripts like Ajax and client side JavaScript can contain malicious scripts as well. In general all that is required is for there to be sufficient privileges to execute a script, but not protected against writing.
  • Signature Spoofing by Key Theft
    An attacker obtains an authoritative or reputable signer's private signature key by theft and then uses this key to forge signatures from the original signer to mislead a victim into performing actions that benefit the attacker.
Access
VectorComplexityAuthentication
NETWORK LOW NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
exploit-db via4
  • description Nagios Core < 4.2.2 - Curl Command Injection / Remote Code Execution. CVE-2016-9565. Remote exploit for Linux platform. Tags: Remote
    file exploits/linux/remote/40920.py
    id EDB-ID:40920
    last seen 2016-12-15
    modified 2016-12-15
    platform linux
    port
    published 2016-12-15
    reporter Exploit-DB
    source https://www.exploit-db.com/download/40920/
    title Nagios Core < 4.2.2 - Curl Command Injection / Remote Code Execution
    type remote
  • description Nagios Core < 4.2.4 - Privilege Escalation. CVE-2016-9566. Local exploit for Linux platform. Tags: Local
    file exploits/linux/local/40921.sh
    id EDB-ID:40921
    last seen 2016-12-15
    modified 2016-12-15
    platform linux
    port
    published 2016-12-15
    reporter Exploit-DB
    source https://www.exploit-db.com/download/40921/
    title Nagios Core < 4.2.4 - Privilege Escalation
    type local
nessus via4
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2017-0258.NASL
    description An update for nagios is now available for Red Hat Gluster Storage 3.1 for RHEL 7. Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. Nagios is a program that monitors hosts and services on your network, and has the ability to send email or page alerts when a problem arises or is resolved. Security Fix(es) : * It was found that an attacker who could control the content of an RSS feed could execute code remotely using the Nagios web interface. This flaw could be used to gain access to the remote system and in some scenarios control over the system. (CVE-2016-9565) * A privilege escalation flaw was found in the way Nagios handled log files. An attacker able to control the Nagios logging configuration (the 'nagios' user/group) could use this flaw to elevate their privileges to root. (CVE-2016-9566)
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 97060
    published 2017-02-08
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=97060
    title RHEL 7 : nagios (RHSA-2017:0258)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2017-D270E932A3.NASL
    description Update to close CVE Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-01-15
    plugin id 105984
    published 2018-01-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=105984
    title Fedora 27 : nagios (2017-d270e932a3)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201702-26.NASL
    description The remote host is affected by the vulnerability described in GLSA-201702-26 (Nagios: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in Nagios. Please review the CVE identifiers referenced below for details. Impact : A local attacker, who either is already Nagios’s system user or belongs to Nagios’s group, could potentially escalate privileges. In addition, a remote attacker could read or write to arbitrary files by spoofing a crafted response from the Nagios RSS feed server. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2017-02-21
    plugin id 97269
    published 2017-02-21
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=97269
    title GLSA-201702-26 : Nagios: Multiple vulnerabilities
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DLA-751.NASL
    description Nagios was found to be vulnerable to two security issues that, when combined, lead to a remote root code execution vulnerability. Fortunately, the hardened permissions of the Debian package limit the effect of those to information disclosure, but privilege escalation to root is still possible locally. CVE-2016-9565 Improper sanitization of RSS feed input enables unauthenticated remote read and write of arbitrary files which may lead to remote code execution if the web root is writable. CVE-2016-9566 Unsafe logfile handling allows unprivileged users to escalate their privileges to root. In wheezy, this is possible only through the debug logfile which is disabled by default. For Debian 7 'Wheezy', these problems have been fixed in version 3.4.1-3+deb7u3. We recommend that you upgrade your nagios3 packages. NOTE: Tenable Network Security has extracted the preceding description block directly from the DLA security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-07-10
    plugin id 96012
    published 2016-12-20
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=96012
    title Debian DLA-751-1 : nagios3 security update
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201710-20.NASL
    description The remote host is affected by the vulnerability described in GLSA-201710-20 (Nagios: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in Nagios. Please review the referenced CVE identifiers for details. Impact : A remote attacker could possibly escalate privileges to root, thus allowing the execution of arbitrary code, by leveraging CVE-2016-9565. Additionally, a local attacker could cause a Denial of Service condition against arbitrary processes due to the improper dropping of privileges. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2017-10-18
    plugin id 103913
    published 2017-10-18
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=103913
    title GLSA-201710-20 : Nagios: Multiple vulnerabilities
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2017-0259.NASL
    description An update for nagios is now available for Red Hat Gluster Storage 3.1 for RHEL 6. Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. Nagios is a program that monitors hosts and services on your network, and has the ability to send email or page alerts when a problem arises or is resolved. Security Fix(es) : * It was found that an attacker who could control the content of an RSS feed could execute code remotely using the Nagios web interface. This flaw could be used to gain access to the remote system and in some scenarios control over the system. (CVE-2016-9565) * A privilege escalation flaw was found in the way Nagios handled log files. An attacker able to control the Nagios logging configuration (the 'nagios' user/group) could use this flaw to elevate their privileges to root. (CVE-2016-9566)
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 97061
    published 2017-02-08
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=97061
    title RHEL 6 : nagios (RHSA-2017:0259)
packetstorm via4
data source https://packetstormsecurity.com/files/download/140169/nagioscore-exec.txt
id PACKETSTORM:140169
last seen 2016-12-15
published 2016-12-15
reporter Dawid Golunski
source https://packetstormsecurity.com/files/140169/Nagios-Core-Curl-Command-Injection-Code-Execution.html
title Nagios Core Curl Command Injection / Code Execution
redhat via4
advisories
  • rhsa
    id RHSA-2017:0211
  • rhsa
    id RHSA-2017:0212
  • rhsa
    id RHSA-2017:0213
  • rhsa
    id RHSA-2017:0214
  • rhsa
    id RHSA-2017:0258
  • rhsa
    id RHSA-2017:0259
refmap via4
bid 94922
bugtraq 20161215 Nagios Core < 4.2.2 Curl Command Injection leading to Remote Code Execution [CVE-2016-9565]
confirm https://www.nagios.org/projects/nagios-core/history/4x/
exploit-db 40920
fulldisc 20161215 Nagios Core < 4.2.2 Curl Command Injection leading to Remote Code Execution [CVE-2016-9565]
gentoo
  • GLSA-201702-26
  • GLSA-201710-20
misc
sectrack 1037488
Last major update 16-12-2016 - 14:11
Published 15-12-2016 - 17:59
Last modified 09-10-2018 - 16:00
Back to Top