Secunia Security Advisory - Secunia Research has discovered two security issues in ADOdb, which can be exploited by malicious people to disclose system information, execute arbitrary SQL code, and potentially compromise a vulnerable system.
6fc465abae6c05a19d5a32a8a360bf95fe6e64bfae0d34bd786c037d905d3fcf
TITLE:
ADOdb Insecure Test Scripts Security Issues
SECUNIA ADVISORY ID:
SA17418
VERIFY ADVISORY:
http://secunia.com/advisories/17418/
CRITICAL:
Less critical
IMPACT:
Security Bypass, Exposure of system information, System access
WHERE:
>From remote
SOFTWARE:
ADOdb 4.x
http://secunia.com/product/6701/
DESCRIPTION:
Secunia Research has discovered two security issues in ADOdb, which
can be exploited by malicious people to disclose system information,
execute arbitrary SQL code, and potentially compromise a vulnerable
system.
1) The problem is caused due to the presence of the insecure
"server.php" test script. This can be exploited to execute arbitrary
SQL code with full MySQL database privileges via the "sql"
parameter.
Example:
http://[victim]/server.php?sql=SELECT '[content]' INTO OUTFILE
'[file]'
This can further be exploited to create an arbitrary PHP script in a
directory inside the web root writable by the MySQL user.
Successful exploitation requires that the MySQL password for the root
user is empty and that the affected script is placed accessible inside
the web root.
2) The problem is caused due to the presence of the insecure
"tests/tmssql.php" test script. This can be exploited to call an
arbitrary PHP function via the "do" parameter.
Example:
http://[victim]/tests/tmssql.php?do=phpinfo
Successful exploitation requires that the affected script is placed
accessible inside the web root.
The security issues have been confirmed in versions 4.66 and 4.68 for
PHP. Other versions may also be affected.
SOLUTION:
Update to version 4.70 for PHP.
http://sourceforge.net/project/showfiles.php?group_id=42718
PROVIDED AND/OR DISCOVERED BY:
Andreas Sandblad, Secunia Research
ORIGINAL ADVISORY:
Secunia Research:
http://secunia.com/secunia_research/2005-64/advisory/
----------------------------------------------------------------------
About:
This Advisory was delivered by Secunia as a free service to help
everybody keeping their systems up to date against the latest
vulnerabilities.
Subscribe:
http://secunia.com/secunia_security_advisories/
Definitions: (Criticality, Where etc.)
http://secunia.com/about_secunia_advisories/
Please Note:
Secunia recommends that you verify all advisories you receive by
clicking the link.
Secunia NEVER sends attached files with advisories.
Secunia does not advise people to install third party patches, only
use those supplied by the vendor.
----------------------------------------------------------------------