SQL injection vulnerability in MODx CMS and Application Framework

Vulnerability ID:HTB22412
Product:MODx CMS and Application Framework
Vendor:MODx
Vulnerable Version:1.0.3 and Probably Prior Versions
Vendor Notification:28 May 2010
Public Disclosure:11 June 2010
Vulnerability Type:SQL Injection
Status:Fixed by Vendor
Risk level:Medium
Credit:High-Tech Bridge SA

Vulnerability Details:

The vulnerability exists due to failure in the "manager/index.php" script to properly sanitize user-supplied input in "a" 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/manager/index.php?a=106%27+ANY_SQL_HERE
You must also set the "Referer" HTTP header

Solution:

Upgrade to the most recent version

Vendor Comment:

This will be addressed in a 1.0.4 release the week of June 1.