ADOdb tmssql.php PHP command execution

adodb-tmssql-command-execution (24052) The risk level is classified as MediumMedium Risk

Description:

ADOdb could allow a remote attacker to execute arbitrary PHP commands on the server. If the tests/tmssql.php script is accessible within the Web root, a remote attacker could send a specially-crafted URL request to the tmssql.php script using the "do" parameter to execute arbitrary PHP commands.

This vulnerability affects the following PHP-based applications: Mantis, PostNuke, Moodle, PHP Link Directory, AgileBill, and Cacti.

*CVSS:

Base Score: 8
  Access Vector: Remote
  Access Complexity: High
  Authentication: Not Required
  Confidentiality Impact: Complete
  Integrity Impact: Complete
  Availability Impact: Complete
 
Temporal Score: 5.9
  Exploitability: Unproven
  Remediation Level: Official-Fix
  Report Confidence: Confirmed

Consequences:

Gain Access

Remedy:

Upgrade to the latest version of ADOdb (4.70-for-php or later), available from SourceForge.net. Se References.

For Cacti:
Upgrade to the latest version of Cacti (0.8.6.h or later), available from the Cacti Web site. See References.

For Moodle:
Upgrade to the latest version of Moodle (1.5.3+ or later), available from the Moodle Web site. See References.

For PostNuke:
Upgrade to the latest version of PostNuke (0.761a or later), available from the PostNuke Web site. See References.

For AgileBill:
Upgrade to the latest version of AgileBill (1.4.93 or later), available from the AgileBill Web site. See References.

For Debian GNU/Linux:
Refer to DSA-1029-1, DSA-1030-1, and DSA-1031-1 for patch, upgrade, or suggested workaround information. See References.

For Gentoo Linux:
Refer to Gentoo Linux Security Announcement GLSA 2006-04-07 for patch, upgrade, or suggested workaround information. See References.

References:

  • AgillBill Web site: Agileco.com.
  • Cacti Web site: Download Cacti.
  • Moodle Web site: Moodle: Download.
  • PHP Link Directory Web site: PHP Link Directory.
  • PostNuke Web site: Downloads.
  • SourceForge.net: ADOdb: Latest File Releases.
  • BID-18638: ADOdb Tmssql.PHP Cross-Site Scripting Vulnerability
  • CVE-2006-0147: Dynamic code evaluation vulnerability in tests/tmssql.php test script in ADOdb for PHP before 4.70, as used in multiple products including (1) Mantis, (2) PostNuke, (3) Moodle, (4) Cacti, (5) Xaraya, (6) PhpOpenChat, possibly (7) MAXdev MD-Pro, and (8) Simplog, allows remote attackers to execute arbitrary PHP functions via the do parameter, which is saved in a variable that is then executed as a function, as demonstrated using phpinfo.
  • DSA-1029: libphp-adodb -- several vulnerabilities
  • DSA-1030: moodle -- several vulnerabilities
  • DSA-1031: cacti -- several vulnerabilities
  • GLSA-200604-07: Cacti: Multiple vulnerabilities in included ADOdb
  • OSVDB ID: 22291: ADOdb tmssql.php do Variable Arbitrary PHP Function Execution
  • SA17418: ADOdb Insecure Test Scripts Security Issues
  • SA18233: Xaraya ADOdb Insecure Test Scripts Security Issues
  • SA18254: Mantis ADOdb Insecure Test Scripts Security Issues
  • SA18260: PostNuke ADOdb "server.php" Insecure Test Script Security Issue
  • SA18267: Moodle ADOdb Insecure Test Scripts Security Issues
  • SA18276: Cacti ADOdb "server.php" Insecure Test Script Security Issue
  • SA19600: PHPOpenChat ADOdb Insecure Test Scripts Security Issues
  • SA19628: Simplog Multiple Vulnerabilities and Security Issues
  • VUPEN/ADV-2006-0101: ADOdb Multiple Test Scripts Remote Command Execution Vulnerabilities
  • VUPEN/ADV-2006-0102: Mantis ADOdb Test Scripts Remote Command Execution Vulnerabilities
  • VUPEN/ADV-2006-0103: Moodle ADOdb Test Scripts Remote Command Execution Vulnerabilities
  • VUPEN/ADV-2006-0104: Cacti ADOdb server.php Test Script Remote Code Execution Issue
  • VUPEN/ADV-2006-1305: PHPOpenChat ADOdb Test Scripts Remote Command Execution Vulnerabilities
  • VUPEN/ADV-2006-1332: Simplog Multiple Remote Command Execution and SQL Injection Vulnerabilities

Platforms Affected:

  • Agileco AgileBill 1.4.92
  • Cacti Cacti 0.8.6g
  • Debian Debian Linux 3.0
  • Debian Debian Linux 3.1
  • Gentoo Linux
  • John Lim ADOdb prior to 4.70
  • Mantis Mantis 0.19.4
  • Mantis Mantis 1.0.0 rc4
  • Moodle Moodle 1.5.3
  • PHP Link Directory PHP Link Directory
  • PostNuke PostNuke 0.761

Reported:

Jan 09, 2006

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page

* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

About IBM Internet Security Systems

IBM Internet Security Systems is a trusted security advisor to thousands of the world's leading businesses and governments, helping to provide pre-emptive protection for networks, desktops and servers. The IBM Proventia? integrated security platform is designed to automatically protect against both known and unknown threats, helping to keep networks up and running and shield customers from online attacks before they impact business assets. IBM Internet Security Systems products and services are based on the proactive security intelligence of its X-Force? research and development team ? an unequivocal world authority in vulnerability and threat research. The IBM Internet Security Systems product line is also complemented by comprehensive Managed Security Services and Professional Security Services. For more information, visit the IBM Internet Security Systems Web site at www.iss.net or call 800-776-2362.