OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
[SA33435] XOOPS "mydirname" PHP Code Injection Vulnerability

From: Secunia Security Advisories (sec-advsecunia.com)
Date: Wed Jan 14 2009 - 19:40:04 CST


----------------------------------------------------------------------

Did you know that a change in our assessment rating, exploit code
availability, or if an updated patch is released by the vendor, is
not part of this mailing-list?

Click here to learn more:
http://secunia.com/advisories/business_solutions/

----------------------------------------------------------------------

TITLE:
XOOPS "mydirname" PHP Code Injection Vulnerability

SECUNIA ADVISORY ID:
SA33435

VERIFY ADVISORY:
http://secunia.com/advisories/33435/

CRITICAL:
Highly critical

IMPACT:
System access

WHERE:
From remote

SOFTWARE:
Xoops 2.x
http://secunia.com/advisories/product/327/

DESCRIPTION:
athos has discovered a vulnerability in XOOPS, which can be exploited
by malicious people to compromise a vulnerable system.

Input passed to the "mydirname" parameter in
xoops_lib/modules/protector/oninstall.php,
xoops_lib/modules/protector/onupdate.php,
xoops_lib/modules/protector/notification.php, and
xoops_lib/modules/protector/onuninstall.php is not properly sanitised
before being used in an "eval()" statement. This can be exploited to
inject and execute arbitrary PHP code.

Successful exploitation requires that "register_globals" is enabled.

Note: The XOOPS installation also incorrectly sets the
"XOOPS_TRUST_PATH" configuration variable to a folder inside the web
root.

The vulnerability is confirmed in version 2.3.2b. Other versions may
also be affected.

SOLUTION:
Restrict web access to the affected files (e.g. via ".htaccess").

PROVIDED AND/OR DISCOVERED BY:
athos

ORIGINAL ADVISORY:
http://milw0rm.com/exploits/7705

----------------------------------------------------------------------

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/advisories/secunia_security_advisories/

Definitions: (Criticality, Where etc.)
http://secunia.com/advisories/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.

----------------------------------------------------------------------

Unsubscribe: Secunia Security Advisories

----------------------------------------------------------------------