- 14 Fev 2013, 09:38
#35383
Bom dia a todos!
Tentei por um bom tempo entrar em contato com o desenvolvedor, mas sem sucesso, acho que foi por causa do feriado de carnaval.
Mas hoje eu consegui, estou resolvendo com ele.
O erro é o seguinte...........
Tenho a minha URL : http://sws.inf.br/home/loja/index.php?r ... duct_id=62
Daí se eu tento incentivar com SQL injection afim de obter alguma informação, ele retorna um erro.
Ex.: http://sws.inf.br/home/loja/index.php?r ... _id=620000 -> ID não existente nos produtos
OU
http://sws.inf.br/home/loja/index.php?r ... roduct_id='"
Isso gerará o seguinte erro:
Notice: 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 ')) ORDER BY p.price ASC LIMIT 1 ' at line 3
Error No: 1064
( SELECT 'min' AS title, p.price, p.tax_class_id FROM product p WHERE p.price>0 AND p.product_id in (select pc.product_id FROM product_to_category pc WHERE pc.category_id IN()) ORDER BY p.price ASC LIMIT 1 )UNION( SELECT 'min_special' AS title, p.price, 0 as tax_class_id FROM product_special p WHERE p.price>0 AND p.product_id in (select pc.product_id FROM product_to_category pc WHERE pc.category_id IN()) AND ((p.date_start = '0000-00-00' OR p.date_start < NOW()) AND (p.date_end = '0000-00-00' OR p.date_end > NOW())) ORDER BY p.priority ASC, p.price ASC LIMIT 1 )UNION( SELECT 'max' AS title, p.price, p.tax_class_id FROM product p WHERE p.price>0 AND p.product_id in (select pc.product_id FROM product_to_category pc WHERE pc.category_id IN()) ORDER BY p.price DESC LIMIT 1 )UNION( SELECT 'max_special' AS title, p.price, 0 as tax_class_id FROM product_special p WHERE p.price>0 AND p.product_id in (select pc.product_id FROM product_to_category pc WHERE pc.category_id IN()) AND ((p.date_start = '0000-00-00' OR p.date_start < NOW()) AND (p.date_end = '0000-00-00' OR p.date_end > NOW())) ORDER BY p.priority ASC, p.price DESC LIMIT 1 ) in /home2/swsinfb1/public_html/home/loja/system/database/mysql.php on line 49
Mas o Simons já está resolvendo comigo, logo passarei como resolver o problema pra vocês, pois isto não pode ficar assim de jeitu nim 1
Tentei por um bom tempo entrar em contato com o desenvolvedor, mas sem sucesso, acho que foi por causa do feriado de carnaval.
Mas hoje eu consegui, estou resolvendo com ele.
O erro é o seguinte...........
Tenho a minha URL : http://sws.inf.br/home/loja/index.php?r ... duct_id=62
Daí se eu tento incentivar com SQL injection afim de obter alguma informação, ele retorna um erro.
Ex.: http://sws.inf.br/home/loja/index.php?r ... _id=620000 -> ID não existente nos produtos
OU
http://sws.inf.br/home/loja/index.php?r ... roduct_id='"
Isso gerará o seguinte erro:
Notice: 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 ')) ORDER BY p.price ASC LIMIT 1 ' at line 3
Error No: 1064
( SELECT 'min' AS title, p.price, p.tax_class_id FROM product p WHERE p.price>0 AND p.product_id in (select pc.product_id FROM product_to_category pc WHERE pc.category_id IN()) ORDER BY p.price ASC LIMIT 1 )UNION( SELECT 'min_special' AS title, p.price, 0 as tax_class_id FROM product_special p WHERE p.price>0 AND p.product_id in (select pc.product_id FROM product_to_category pc WHERE pc.category_id IN()) AND ((p.date_start = '0000-00-00' OR p.date_start < NOW()) AND (p.date_end = '0000-00-00' OR p.date_end > NOW())) ORDER BY p.priority ASC, p.price ASC LIMIT 1 )UNION( SELECT 'max' AS title, p.price, p.tax_class_id FROM product p WHERE p.price>0 AND p.product_id in (select pc.product_id FROM product_to_category pc WHERE pc.category_id IN()) ORDER BY p.price DESC LIMIT 1 )UNION( SELECT 'max_special' AS title, p.price, 0 as tax_class_id FROM product_special p WHERE p.price>0 AND p.product_id in (select pc.product_id FROM product_to_category pc WHERE pc.category_id IN()) AND ((p.date_start = '0000-00-00' OR p.date_start < NOW()) AND (p.date_end = '0000-00-00' OR p.date_end > NOW())) ORDER BY p.priority ASC, p.price DESC LIMIT 1 ) in /home2/swsinfb1/public_html/home/loja/system/database/mysql.php on line 49
Mas o Simons já está resolvendo comigo, logo passarei como resolver o problema pra vocês, pois isto não pode ficar assim de jeitu nim 1




