I am using SEO Friendly URL's, however, if there is more than one page of a product or category it will add:
category/product?page=#
Shouldn't that resolve to this:
category/product/page/#
I didn't discover this until I ran a PCI compliance scan on my clients site. The results point to this:
Sure enough, if I try to browse to that I am provided with an mysql error:Unsafe URLs : /Category/Product?page=QUOTETEST%271%221%60
(SQL error pattern: You have an error in your SQL syntax)
An attacker may exploit this flaws to bypass authentication or to take the control of the
remote database.
Any suggestions on how I can fix this with .htaccess so that it doesn't show ?page=# ?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 '-12,12' at line 1
Error No: 1064
SELECT *, pd.name AS name, p.image, m.name AS manufacturer, ss.name AS stock, (SELECT AVG(r.rating) FROM review r WHERE p.product_id = r.product_id GROUP BY r.product_id) AS rating FROM product p LEFT JOIN product_description pd ON (p.product_id = pd.product_id) LEFT JOIN manufacturer m ON (p.manufacturer_id = m.manufacturer_id) LEFT JOIN stock_status ss ON (p.stock_status_id = ss.stock_status_id) LEFT JOIN product_to_category p2c ON (p.product_id = p2c.product_id) WHERE p.status = '1' AND p.date_available <= NOW() AND pd.language_id = '1' AND ss.language_id = '1' AND p2c.category_id = '57' ORDER BY pd.name ASC LIMIT -12,12
Thanks,
Kevin