[UNIX] Sqwebmail Cross Site Scripting

From: SecuriTeam (support_at_securiteam.com)
Date: 06/22/04

  • Next message: SecuriTeam: "[UNIX] Remote File Inclusion in Pivotlog (module_db_xml.php)"
    To: list@securiteam.com
    Date: 22 Jun 2004 19:16:56 +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

    - - - - - - - - -

      Sqwebmail Cross Site Scripting
    ------------------------------------------------------------------------

    SUMMARY

    " <http://www.inter7.com/index.php?page=sqwebmail> SqWebMail is a web CGI
    client for sending and receiving E-mail using Maildir mailboxes. SqWebMail
    DOES NOT support traditional Mailbox files, only Maildirs."

    A cross site scripting vulnerability have been found in SqWebMail. A
    malicious user can inject script code that will run in the context of a
    user viewing an Email through the CGI system by using the script code as
    the SMTP mail headers when sending Email or as the
    "message/delivery-status" content type header value.

    DETAILS

    Vulnerable Systems:
     * Sqwebmail version 4.0.4.20040524

    Immune Systems:
     * Sqwebmail 4.0.5

    In order to inject script code into the system, the following SMTP
    negotiation can take place:
    $ telnet localhost 25
    Trying x.x.x.x...
    Connected to x.x.x.x.
    Escape character is '^]'.
    220 x.x.x.x ESMTP
    helo foo
    250 x.x.x.x
    mail from:<test@test.com>
    250 ok
    rcpt to:<user@mediaservice.net>
    250 ok
    data
    354 go ahead
    <scr!pt>alert(document.location)</scr!pt>
     .
    [...]

    Note: This works only if Sqwebmail is configured to display the full
    headers (via prefences or via fullheaders cgi variable). Another
    alternative is to send a raw Email message with the MIME Content-Type
    header set to "message/delivery-status" with malformed content, much like
    the script tag presented in the above example.

    The vulnerable code is located within the print_header_uc() function in
    'folder.c'. Upon examination of the code it was found that there are only
    two calls to the vulnerable function. However, that is more than enough
    since the function does not filter special characters such as angle
    brackets. By sending a specially crafted Email message, an attacker is
    able to invoke cross site scripting code with all possible ramifications.

    Vendor Status:
    The vendors (author and current maintainer) were informed and a new
    version was released the same day which fixes the vulnerability.

    ADDITIONAL INFORMATION

    The information has been provided by
    <mailto:luca.legato@mediaservice.net> Luca Legato.

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

    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] Remote File Inclusion in Pivotlog (module_db_xml.php)"

    Relevant Pages

    • [UNIX] SqWebMail Conditional Comments Script Insertion
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Secunia Research has discovered a vulnerability in SqWebMail, ...
      (Securiteam)
    • [UNIX] Trend Micro VirusWall Buffer Overflow in VSAPI Library
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... buffer overflow vulnerability in VSAPI library allows arbitrary code ... is called "vscan" which is set suid root by default. ... permissions and thus granted all local users the privilege to execute the ...
      (Securiteam)
    • [UNIX] SCO Multiple Local 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 the ppp binary, ... allows attackers to gain root privileges. ...
      (Securiteam)
    • [NT] Microsoft Word 6.0/95 Document Converter Buffer Overflow (MS04-041)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... WordPad is "a word processing application that uses the MFC rich edit ... Remote exploitation of a buffer overflow vulnerability in Microsoft ... Microsoft Word format files into the Rich Text Format natively handled by ...
      (Securiteam)
    • [UNIX] Tikiwiki Command Injection and Arbitrary File Exposure 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 ... Two security vulnerabilities have been recently discovered in Tikiwiki, ... Remote exploitation of an input validation vulnerability in Tikiwiki ... allows attackers to gain access to arbitrary files on the vulnerable ...
      (Securiteam)