Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:13985
HistoryAug 21, 2006 - 12:00 a.m.

[SA21578] phpCodeGenie "BEAUT_PATH" File Inclusion Vulnerability

2006-08-2100:00:00
vulners.com
515

TITLE:
phpCodeGenie "BEAUT_PATH" File Inclusion Vulnerability

SECUNIA ADVISORY ID:
SA21578

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

CRITICAL:
Less critical

IMPACT:
System access

WHERE:
>From remote

SOFTWARE:
phpCodeGenie 3.x
http://secunia.com/product/4141/

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

Input passed to the "BEAUT_PATH" parameter in
app/common/lib/codeBeautifier/Beautifier/Core.php is not properly
verified before being used to include files. This can be exploited to
execute arbitrary PHP code by including files from local or external
resources.

Successful exploitation requires that "register_globals" is enabled.

NOTE: This advisory has been rated "Less critical" as phpCodeGenie is
intended for development purposes and should not be run on production
systems nor publicly available servers.

The vulnerability has been confirmed in version 3.0.2. Other versions
may also be affected.

SOLUTION:
Edit the source code to ensure that input is properly verified.

Restrict access to the "app" directory (e.g. via .htaccess).

PROVIDED AND/OR DISCOVERED BY:
Kacper

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


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.