[UNIX] Exim auth_spa_server() Buffer Overflow Vulnerability

From: SecuriTeam (support_at_securiteam.com)
Date: 01/09/05

  • Next message: SecuriTeam: "[UNIX] Linux Kernel uselib() Privilege Elevation"
    To: list@securiteam.com
    Date: 9 Jan 2005 10:47:10 +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

    - - - - - - - - -

      Exim auth_spa_server() Buffer Overflow Vulnerability
    ------------------------------------------------------------------------

    SUMMARY

     <http://www.exim.org/> Exim is a message transfer agent developed for use
    on UNIX systems. Remote exploitation of a buffer overflow vulnerability in
    Exim 4.41 allows execution of arbitrary commands with elevated privileges.

    DETAILS

    Vulnerable Systems:
     * Exim version 4.42 and prior

    To determine if the Exim version being used is vulnerable, connect to port
    25 of the machine with Exim installed and type:
       EHLO localhost

    If AUTH NTLM appears in the output the application may be vulnerable.

    Immune Systems:
     * Exim version 4.43 or newer

    Details:
    Exim is a message transfer agent developed for use on UNIX systems. The
    problem specifically exists in the auth_spa_server function. The function
    fails to check the length of input to spa_base64_to_bits(), which decodes
    a Base64-encoded string into a buffer of a fixed length. This string is
    user-controlled and passed to the program from a remote connection.

    Analysis:
    Exploitation of this vulnerability will give an attacker remote access to
    the mailer uid. The Exim mailer is setuid root, but drops privileges
    before the vulnerable code is reached. A remote attacker may be able to
    use other vulnerabilities to further elevate their privileges.

    This vulnerability is only exploitable when the spa authentication method
    has been configured by setting AUTH_SPA=yes in Local/Makefile

    Vendor Response:
    A patch for Exim release 4.43 which addresses this vulnerability is
    available at:
    <http://www.exim.org/mail-archives/exim-announce/2005/msg00000.html>
    http://www.exim.org/mail-archives/exim-announce/2005/msg00000.html

    The patch will be incorporated into a future Exim release (4.50).

    CVE Information:
     <http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0022>
    CAN-2005-0022

    Disclosure Timeline:
    12/23/2004 - Initial vendor notification
    12/29/2004 - Initial vendor response
    01/07/2004 - Coordinated public disclosure

    ADDITIONAL INFORMATION

    The information has been provided by
    <mailto:idlabs-advisories@idefense.com> iDEFENSE.
    The original article can be found at:
    <http://www.idefense.com/application/poi/display?id=178&type=vulnerabilities> http://www.idefense.com/application/poi/display?id=178&type=vulnerabilities

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

    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: "[UNIX] Linux Kernel uselib() Privilege Elevation"

    Relevant Pages

    • [EXPL] Windows RRAS Stack Overflow (Exploit, MS06-025)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... There is a remote code execution vulnerability in the Routing and Remote ... Microsoft Windows XP Service Pack 1 and Microsoft Windows XP Service ...
      (Securiteam)
    • [NEWS] Checkpoint VPN-1/SecureClient ISAKMP 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 ... "Checkpoint VPN-1 server and Checkpoint VPN clients ... networks for remote client computers. ... There is no effective workaround for this vulnerability. ...
      (Securiteam)
    • [UNIX] Exim host_aton() Buffer Overflow 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 ... Exim is "a message transfer agent developed for use on UNIX systems". ... Local exploitation of a buffer overflow vulnerability in Exim 4.41 allows ... 12/29/2004 - Initial vendor response ...
      (Securiteam)
    • [UNIX] Exim dns_buld_reverse() Buffer Overflow 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 ... * Exim version 4.42 and prior ... Exploitation of this vulnerability will give an attacker access to the ... 09/30/2004 - Initial vendor response ...
      (Securiteam)
    • [NEWS] Adobe SVG Viewer Local and Remote File Reading
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... "Adobe SVG Viewer 3.0 is available in 15 languages and many ... A vulnerability in Adobe's SVG allows remote attackers to read locally ...
      (Securiteam)