[UNIX] Yaws Webserver Code Disclosure

From: SecuriTeam (support_at_securiteam.com)
Date: 06/19/05

  • Next message: SecuriTeam: "[EXPL] Claroline E-Learning Application Remote SQL Injection"
    To: list@securiteam.com
    Date: 19 Jun 2005 18:56:23 +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

    - - - - - - - - -

      Yaws Webserver Code Disclosure
    ------------------------------------------------------------------------

    SUMMARY

     <http://yaws.hyber.org> Yaws is "a HTTP high performance 1.1 web server.
    Yaws is entirely written in Erlang furthermore it is a multi-threaded web
    server where one Erlang light weight process is used to handle each
    client".

    Yaws server discloses the script's source whenever a NULL byte is appended
    to scripts filename.

    DETAILS

    Vulnerable Systems:
     * Yaws versions 1.55 and prior

    Immune Systems:
     * Yaws versions 1.56

    If a NULL byte is appended to the filename of a yaws script (.yaws), the
    yaws web server will return the page containing the source code of the
    according script. This flaw allows a malicious attacker to analyze the
    source code of the entire web application, which might result in the
    attacker gaining sensitive information like passwords.

    The yaws homepage itself was vulnerable to the attack. Opening the link
    http://yaws.hyber.org/dynamic.yaws%00 in a browser resulted in the display
    of the following code (only the first couple of lines...):

    <erl>
    box(Str) ->
        {'div',[{class,"box"}],
         {pre, [], yaws_api:htmlize(Str)}}.

    tbox(T) ->
        box(lists:flatten(io_lib:format("~p",[T]))).

    ..

    Disclosure Timeline:
    16.06.05 - Vendor notified
    16.06.05 - Vendor response
    16.06.05 - Patch available

    Vendor Status:
    Vendor was extremely fast to response and post a fix. You can download a
    patch from: <http://yaws.hyber.org/yaws-1.55_to_1.56.patch>
    http://yaws.hyber.org/yaws-1.55_to_1.56.patch

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:research@sec-consult.com>
    Daniel Fabian.
    The original article can be found at:
    <http://www.sec-consult.com/181.html> http://www.sec-consult.com/181.html

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

    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] Claroline E-Learning Application Remote SQL Injection"

    Relevant Pages

    • [NT] w3wp 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 ... 1/12/2006 - Vendor requested for additional info ... recv(conn_socket, szBuffer, 256, 0); ...
      (Securiteam)
    • [UNIX] Mono XSP ASP.NET Server Source Code Disclosure Vulnerability
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Mono XSP ASP.NET Server Source Code Disclosure Vulnerability ... Using a source code disclosure attack, an attacker can retrieve the source ...
      (Securiteam)
    • [NT] Trend Micro HouseCall ActiveX Control Arbitrary Code Execution
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Trend Micro HouseCall ActiveX Control Arbitrary Code Execution ... The vulnerability is caused due to an implementation error within the ... 18/08/2008 - Vendor notified. ...
      (Securiteam)
    • [NT] Microsoft Hierarchical FlexGrid Control Integer Overflows (MS08-070)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Microsoft Hierarchical FlexGrid Control Integer Overflows ... 28/08/2007 - Vendor notified. ...
      (Securiteam)
    • [NT] CA ARCserve Backup RPC "handle_t" Argument Vulnerability
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... CA ARCserve Backup RPC "handle_t" Argument Vulnerability ... 24/10/2007 - Vendor notified. ... 21/05/2008 - Vendor notifies expected release in October 2008. ...
      (Securiteam)