Dynamic Code Evaluation in ADOdb for PHP (tmssql.php)
ADOdb for PHP before 4.70 contains a dynamic code evaluation vulnerability in the tests/tmssql.php test script. The script takes user input from the 'do' parameter, assigns it to a variable, and then executes it as a PHP function. This allows remote attackers to execute arbitrary PHP functions, as demonstrated with the 'phpinfo' function. The vulnerability affects multiple products that include ADOdb, such as Mantis, PostNuke, Moodle, Cacti, Xaraya, PhpOpenChat, possibly MAXdev MD-Pro, and Simplog.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Remote attackers can execute arbitrary PHP functions on the server by supplying crafted input to the 'do' parameter in the vulnerable script. This can lead to full compromise of the affected web application and potentially the underlying server, depending on the privileges of the web server process.
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, remove the tests/tmssql.php script from all production servers or restrict access to it via web server configuration (e.g., using .htaccess or equivalent). Regularly audit web application directories for the presence of test or development scripts.
Patch, then assume compromise.
Upgrade ADOdb to version 4.70 or later, which removes or secures the vulnerable test script. Additionally, ensure that test scripts like tmssql.php are not deployed on production systems. Remove or restrict access to any test or development scripts in production environments.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.