[UNIX] Mathopd Insecure Dump File Creation

From: SecuriTeam (support_at_securiteam.com)
Date: 03/28/05

  • Next message: SecuriTeam: "[NEWS] Mozilla Browsers OnFire (Firescrolling, Fireflashing, Firetabbing, Firedragging)"
    To: list@securiteam.com
    Date: 28 Mar 2005 10:22:46 +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

    - - - - - - - - -

      Mathopd Insecure Dump File Creation
    ------------------------------------------------------------------------

    SUMMARY

    " <http://www.mathopd.org/> Mathopd is a very small, yet very fast HTTP
    server for UN*X systems. Mathopd supports useful features of HTTP/1.1,
    such as persistent connections, partial responses and pipelining. It does
    not support things like content negotiation. The latest version of the
    software (1.5) also supports CGI/1.1".

    Recently discovered vulnerability in Mathopd, can be exploited by
    malicious local users to corrupt the contents of arbitrary files on a
    vulnerable system.

    DETAILS

    Vulnerable Systems:
     * Mathopd version 1.5p4
     * Mathopd version 1.6b5

    Immune Systems:
     * Mathopd version 1.5p5
     * Mathopd version 1.6b6 Beta

    The vulnerability is caused due to the "internal_dump()" function creating
    dump files insecurely when a SIGWINCH signal is caught. This can be
    exploited via symlink attacks to append dump data to arbitrary files on
    the system with the privileges of the user running Mathopd.

    Successful exploitation requires that Mathopd is running with the "-n"
    command line option, and the user running Mathopd resizes the terminal
    window.

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:michiel@boland.org> Michiel
    Boland.
    The original article can be found at:
    <http://www.mail-archive.com/mathopd%40mathopd.org/msg00272.html>
    http://www.mail-archive.com/mathopd%40mathopd.org/msg00272.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: "[NEWS] Mozilla Browsers OnFire (Firescrolling, Fireflashing, Firetabbing, Firedragging)"

    Relevant Pages