nagios niubility 漏洞

简介: Summary:---------------CVE-ID: CVE-2013-1362CVSS: Base Score 7.
Summary:
---------------
CVE-ID: CVE-2013-1362
CVSS: Base Score 7.5
CVSS2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:U/RL:OF/RC:UC/CDP:N/TD:N/CR:L/IR:L/AR:L
Vendor: Nagios
Affected Products: NRPE
Affected Platforms: All
Affected versions: < 2.14
Remote Exploitable: Yes
Local Exploitable: No
Patch Status Vendor released a patch (See Solution)
URL: http://www.occamsec.com/vulnerabilities.html#nagios_metacharacter_vulnerability

Description
----------------
nrpe 2.13 has, in src/nrpc.c, line 52:

#define NASTY_METACHARS         "|`&><'\"\\[]{};"

This allows the passing of $() to plugins/scripts which, if run under
bash, will execute that shell command under a subprocess and pass the
output as a parameter to the called script. Using this, it is possible
to get called scripts, such as check_http, to execute arbitrary
commands under the uid that NRPE/nagios is running as (typically,
'nagios').

Solution
------------
Upgrade to NRPE 2.14 or later, available at
http://sourceforge.net/projects/nagios/files/nrpe-2.x/
 
 
 CVSS Base Score 7.5
 CVSS2 Vector AV:N/AC:L/Au:N/C:P/I:P/A:P/E:U/RL:OF/RC:UC/CDP:N/TD:N/CR:L/IR:L/AR:L
 Vendor Nagios
 Affected Products NRPE (Configured with --enable-command-args).
 Affected Platforms All
 Affected versions < 2.14
 Remote Exploitable Yes
 Local Exploitable No
 Patch Status Vendor released a patch (See Solution)
 
Description

nrpe 2.13 has, in src/nrpc.c, line 52:

#define NASTY_METACHARS         "|`&><'\"\\[]{};"

When NRPE is compiled with --enable-command-args (the default for mostLinux distributions), the above code allows the passing of $() to plugins/scripts which, if run under bash, will execute thatshell command under a subprocess and pass the output as a parameter tothe called script. Using this, it is possible to get called scripts,such as check_http, to execute arbitrary commands under the uid thatNRPE/nagios is running as (typically, 'nagios').

Solution

Upgrade to NRPE 2.14 or later, available at http://sourceforge.net/projects/nagios/files/nrpe-2.x/

目录
相关文章
|
安全 数据库
【Debian】配置aide入侵检测服务
基于debian系统。aide主要功能检测系统文件,当系统文件发生变化,如/etc/passwd文件出现差异,那么aide将会认为系统遭受入侵被增添用户
2267 0
|
安全 Ubuntu 应用服务中间件
|
安全 Apache
漏洞预警:Apache httpd 出现多个重要安全漏洞
漏洞编号: CVE-2017-3167 CVE-2017-3169 CVE-2017-7659 CVE-2017-7668 CVE-2017-7679 漏洞名称: Apache httpd 多个安全漏洞 官方评级: 高危 漏洞描述: CVE-2017-3167 第三方模块在身份验证阶段使用ap_get_basic_auth_pw(),会导致绕过身份验证要求。
4574 0
|
监控 测试技术 PHP
|
监控 开发工具 PHP