[UNIX] ADOdb SQL Injection and PHP Code Execution Vulnerabilities



The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html

- - - - - - - - -



ADOdb SQL Injection and PHP Code Execution Vulnerabilities
------------------------------------------------------------------------


SUMMARY

" <http://adodb.sourceforge.net/> ADOdb is a database abstraction library
for PHP."

Two vulnerabilities in ADOdb can be exploited by malicious attackers to
disclose system information, execute arbitrary PHP code, execute arbitrary
SQL code, and potentially compromise a vulnerable system.

DETAILS

Vulnerable Systems:
* ADOdb version 4.66
* ADOdb version 4.68

Immune Systems:
* ADOdb version 4.70

SQL Injection:
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.

Proof of Concept:
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.

Code Execution:
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.

Proof of Concept:
http://[victim]/tests/tmssql.php?do=phpinfo

Successful exploitation requires that the affected script is placed
accessible inside the web root.

Disclosure Timeline:
30/12/2005 - Initial vendor notification.
03/01/2006 - Other affected vendors notified.
05/01/2006 - Initial vendor reply.
08/01/2006 - New version of ADOdb released.
09/01/2006 - Public disclosure.


ADDITIONAL INFORMATION

The information has been provided by <mailto:vuln@xxxxxxxxxxx> Secunia
Research.
The original article can be found at:
<http://secunia.com/secunia_research/2005-64/advisory/>
http://secunia.com/secunia_research/2005-64/advisory/



========================================


This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx


====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.



Relevant Pages

  • [NT] MailEnable Web Mail Client Multiple Vulnerabilities
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Multiple vulnerabilities have been discovered in MailEnable Web Mail ... scripting, cross-site request forgery, and script insertion attacks. ... Successful exploitation requires that the ...
    (Securiteam)
  • [UNIX] Jetbox Multiple Vulnerabilities
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... a user's browser session in context of an affected site. ... exploited to execute arbitrary HTML and script code in a user's browser ... Successful exploitation may lead to execution of arbitrary PHP code by ...
    (Securiteam)
  • [NT] Horde Multiple XSS
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... based on PHP and the Horde Framework." ... Horde is subject to a client side script injection vulnerability in the ...
    (Securiteam)
  • [NT] Microsoft Internet Explorer ART File Heap Corruption
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Microsoft Internet Explorer ART File Heap Corruption ... Remote exploitation of a heap corruption vulnerability in Microsoft ...
    (Securiteam)
  • [UNIX] Mantis Bug Tracker Multiple Vulnerabilities
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... any HTML or script code can be injected. ... * Another XSS vulnerability can be found in the signup.php script (ex.: ... there is also a remote PHP code execution in the system. ...
    (Securiteam)