Lucene search
K

Nagios XI Privilege Escalation

🗓️ 15 Dec 2011 00:00:00Reported by 0a2940Type 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 23 Views

Nagios XI Privilege Escalation vulnerability in < 2011R1.9 installer

Code
`================  
Privilege escalation vulnerabilities in Nagios XI installer < 2011R1.9  
  
Author: 0a29406d9794e4f9b30b3c5d6702c708  
  
twitter.com/0a29 - 0a29.blogspot.com - GMail 0a2940  
================  
Description:  
================  
  
Multiple privilege escalations exist within Nagios XI installer.  
  
Tested against 2011R1.8, dated October 28, 2011. Fixes detailed in  
http://assets.nagios.com/downloads/nagiosxi/CHANGES-2011.TXT (2011R1.9  
- 12/07/2011)  
  
================  
Details:  
================  
  
Vulnerability 1: Arbitrary RPM installation  
-----  
Files:  
0-yum  
1-prereqs  
  
In certain situations files matching /tmp/epel-release*.rpm ,  
/tmp/rpmforge-release*.rpm  
and /tmp/php-pear-HTML-Template-IT*.rpm will be installed.  
  
e.g. from 0-yum:  
  
if ! rpm -q epel-release &>/dev/null; then  
<snip>  
cd /tmp  
<snip>  
rpm -Uvh epel-release*.rpm  
-----  
  
Vulnerability 2: Arbitrary crontab intallation  
-----  
Files:  
install-crontab-root  
install-crontab-nagios  
uninstall-crontab-nagios  
  
A malicious user can exploit a race condition to control the root and  
nagios user's  
crontab. By creating the temporary file in advance (to control  
permissions) an attacker  
can insert entries before it is used to update the crontab.  
  
e.g. from install-crontab-root:  
---  
#!/bin/sh  
  
crontab -l -u root | grep -v "/usr/local/nagiosxi/" > /tmp/root.crontab.new  
cat nagiosxi/crontab.root >> /tmp/root.crontab.new  
  
crontab -u root /tmp/root.crontab.new  
  
rm -f /tmp/root.crontab.new  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation