Vulnerabilities > CVE-2012-6096 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in multiple products

047910
CVSS 7.5 - HIGH
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
low complexity
nagios
icinga
CWE-119
nessus
exploit available
metasploit

Summary

Multiple stack-based buffer overflows in the get_history function in history.cgi in Nagios Core before 3.4.4, and Icinga 1.6.x before 1.6.2, 1.7.x before 1.7.4, and 1.8.x before 1.8.4, might allow remote attackers to execute arbitrary code via a long (1) host_name variable (host parameter) or (2) svc_description variable.

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

  • descriptionNagios3 history.cgi Host Command Execution. CVE-2012-6096. Remote exploit for linux platform
    fileexploits/linux/remote/24159.rb
    idEDB-ID:24159
    last seen2016-02-02
    modified2013-01-16
    platformlinux
    port
    published2013-01-16
    reportermetasploit
    sourcehttps://www.exploit-db.com/download/24159/
    titleNagios3 history.cgi Host Command Execution
    typeremote
  • descriptionNagios history.cgi Remote Command Execution. CVE-2012-6096. Remote exploits for multiple platform
    fileexploits/multiple/remote/24084.py
    idEDB-ID:24084
    last seen2016-02-02
    modified2013-01-13
    platformmultiple
    port
    published2013-01-13
    reporterblasty
    sourcehttps://www.exploit-db.com/download/24084/
    titleNagios history.cgi Remote Command Execution Vulnerability
    typeremote

Metasploit

descriptionThis module abuses a command injection vulnerability in the Nagios3 history.cgi script.
idMSF:EXPLOIT/UNIX/WEBAPP/NAGIOS3_HISTORY_CGI
last seen2020-05-29
modified2018-08-20
published2013-01-15
referenceshttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-6096
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/unix/webapp/nagios3_history_cgi.rb
titleNagios3 history.cgi Host Command Execution

Nessus

  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2013-0732.NASL
    descriptionUpdate to 3.4.4; CVE-2012-6096 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-17
    modified2013-01-23
    plugin id63658
    published2013-01-23
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/63658
    titleFedora 18 : nagios-3.4.4-1.fc18 (2013-0732)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201412-23.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-201412-23 (Nagios: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in Nagios. Please review the CVE identifiers referenced below for details. Impact : A remote attacker may be able to execute arbitrary code, cause a Denial of Service condition, or obtain sensitive information. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id79976
    published2014-12-15
    reporterThis script is Copyright (C) 2014-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/79976
    titleGLSA-201412-23 : Nagios: Multiple vulnerabilities
  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2013-54.NASL
    description - fixed Stack based buffer overflow in web interface: bnc#797237 - CVE-2012-6096 - icinga-fix-bnc797237.patch
    last seen2020-06-05
    modified2014-06-13
    plugin id75069
    published2014-06-13
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/75069
    titleopenSUSE Security Update : icinga (openSUSE-SU-2013:0206-1)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-2616.NASL
    descriptionA buffer overflow problem has been found in nagios3, a host/service/network monitoring and management system. A malicious client could craft a request to history.cgi and cause application crashes.
    last seen2020-03-17
    modified2013-02-04
    plugin id64439
    published2013-02-04
    reporterThis script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/64439
    titleDebian DSA-2616-1 : nagios3 - buffer overflow in CGI scripts
  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2013-45.NASL
    description - imported upstream version 1.7.4 - bnc#797237 - core: add fix for CVE-2012-6096 - history.cgi remote command execution (Eric Stanley, Markus Frosch) #3532 - MF - core: fix embedded perl segfault #3027 - MF - core: fix duplicated events on check scheduling logic for new events (Andreas Ericsson) #2676 #2993 - MF - core: avoid duplicate events when scheduling forced host|service check (Imri Zvik) #2993 - MF - core: get rid of the instame macro usage while logging alerts and states (Andreas Ericsson) #2665 - MF - core: revamp the detection of embedded perl usage directive
    last seen2020-06-05
    modified2014-06-13
    plugin id75020
    published2014-06-13
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/75020
    titleopenSUSE Security Update : icinga (openSUSE-SU-2013:0169-1)
  • NASL familyCGI abuses
    NASL idNAGIOS_CORE_344.NASL
    descriptionThe remote web server hosts a version of Nagios Core that is affected by a buffer overflow vulnerability. By sending a specially crafted request using the
    last seen2020-06-01
    modified2020-06-02
    plugin id63563
    published2013-01-16
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/63563
    titleNagios Core history.cgi Multiple Parameter Buffer Overflow
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_NAGIOS-130211.NASL
    descriptionThis update fixes a stack overflow in nagios web interface. CVE-2012-6096 has been assigned.
    last seen2020-06-05
    modified2013-02-28
    plugin id64926
    published2013-02-28
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/64926
    titleSuSE 11.2 Security Update : nagios (SAT Patch Number 7328)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2013-0753.NASL
    descriptionUpdate to 3.4.4; CVE-2012-6096 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-17
    modified2013-01-23
    plugin id63660
    published2013-01-23
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/63660
    titleFedora 17 : nagios-3.4.4-1.fc17 (2013-0753)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2013-0752.NASL
    descriptionUpdate to 3.4.4; CVE-2012-6096 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-17
    modified2013-01-23
    plugin id63659
    published2013-01-23
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/63659
    titleFedora 16 : nagios-3.4.4-1.fc16 (2013-0752)
  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2013-41.NASL
    description - avoid stack based buffer overflow in web interface (history): added nagios-history_buffer_overflow.patch - (bnc#797237) fixes CVE-2012-6096
    last seen2020-06-05
    modified2014-06-13
    plugin id74997
    published2014-06-13
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/74997
    titleopenSUSE Security Update : nagios (openSUSE-SU-2013:0140-1)
  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_97C22A945B8B11E2B131000C299B62E1.NASL
    descriptionfull disclosure reports : history.cgi is vulnerable to a buffer overflow due to the use of sprintf with user-supplied data that has not been restricted in size.
    last seen2020-06-01
    modified2020-06-02
    plugin id63470
    published2013-01-11
    reporterThis script is Copyright (C) 2013-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/63470
    titleFreeBSD : nagios -- buffer overflow in history.cgi (97c22a94-5b8b-11e2-b131-000c299b62e1)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-2653.NASL
    descriptionIt was discovered that Icinga, a host and network monitoring system, contains several buffer overflows in the history.cgi CGI program.
    last seen2020-03-17
    modified2013-03-27
    plugin id65696
    published2013-03-27
    reporterThis script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/65696
    titleDebian DSA-2653-1 : icinga - buffer overflow
  • NASL familySuSE Local Security Checks
    NASL idSUSE_NAGIOS-8460.NASL
    descriptionThis update fixes a stack overflow in the nagios web interface. CVE-2012-6096 has been assigned.
    last seen2020-06-05
    modified2013-02-28
    plugin id64927
    published2013-02-28
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/64927
    titleSuSE 10 Security Update : nagios (ZYPP Patch Number 8460)

Packetstorm

Saint

bid56879
descriptionNagios 3 history.cgi Command Injection
osvdb88322
titlenagios3_history_cgi_cmd_injection
typeremote

Seebug

  • bulletinFamilyexploit
    descriptionNo description provided by source.
    idSSV:77822
    last seen2017-11-19
    modified2014-07-01
    published2014-07-01
    reporterRoot
    sourcehttps://www.seebug.org/vuldb/ssvid-77822
    titleNagios history.cgi Remote Command Execution Vulnerability
  • bulletinFamilyexploit
    descriptionNo description provided by source.
    idSSV:60596
    last seen2017-11-19
    modified2013-01-16
    published2013-01-16
    reporterRoot
    sourcehttps://www.seebug.org/vuldb/ssvid-60596
    titleNagios 3.x Remote Command Execution(CVE-2012-6096)