[NT] Kaspersky AntiVirus Buffer Overflow (CAB Files)

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

  • Next message: SecuriTeam: "[EXPL] ProZilla Buffer Overflow (Exploit)"
    To: list@securiteam.com
    Date: 6 Oct 2005 15:27:54 +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

    - - - - - - - - -

      Kaspersky AntiVirus Buffer Overflow (CAB Files)
    ------------------------------------------------------------------------

    SUMMARY

    " <http://www.kaspersky.com/personal> Kaspersky Anti-Virus Personal
    monitors all virus and spyware entry points leaving you with a clean and
    safe machine."

    A buffer overflow vulnerability in Kaspersky AntiVirus allows attackers to
    cause the program execute arbitrary code using CAB archive file.

    DETAILS

    Vulnerable Systems:
     * Kaspersky Anti-Virus Personal version 5.0
     * Kaspersky Anti-Virus Personal Pro version 5.0
     * Kaspersky Anti-Virus version 5.0 for Windows Workstations,
     * Kaspersky Anti-Virus version 5.0 for Windows File Servers
     * Kaspersky Personal Security Suite version 1.1

    Immune Systems:
     * All of Kaspersky Lab's antivirus version 4.5

    The Kaspersky Antivirus Library provides file format support for virus
    analysis. During analysis of cab files Kaspersky is vulnerable to a heap
    overflow allowing attackers complete control of the system(s) being
    protected. This vulnerability can be exploited remotely without user
    interaction in default configurations through common protocols such as
    SMTP, SMB, HTTP, and FTP.

    Successful exploitation of Kaspersky protected systems allows attackers
    unauthorized control of data and related privileges. It also provides
    leverage for further network compromise. Kaspersky Antivirus Library
    implementations are likely vulnerable in their default configuration.

    The vulnerable file format engine is responsible for parsing cab files.
    Specifically, the vulnerability is the result of an improperly bounded
    copy loop in a core processing function. This function is reachable while
    processing records after the initial cab header. For many types of records
    this function is passed a statically allocated heap buffer. By crafting a
    cab file with large non-null records and particular header flags set, an
    attacker can corrupt vtables to execute arbitrary machine instructions.

    A reverse engineering of a disassembler result give the following out:
    static int CAB_read_record(CAB_FILE__struct *cfs, BYTE *dst) {
             BYTE tmp = 0;
             int count = 0;
             do {
                     count++;
                     cfs->CAB_fgetc(cfs, &tmp);
                     if(dst) {
                              *dst = tmp;
                              dst++;
                     }
             } while(tmp);
             ...
             Return count;
    }

    The following code copy string until a user controlled value was found,
    and not until destination size.

    Vendor Status:
    The vendor has released a patch available with regular program updates.

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:security@rem0te.com> rem0te.
    The original article can be found at:
    <http://www.rem0te.com/public/images/kaspersky.pdf>
    http://www.rem0te.com/public/images/kaspersky.pdf

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

    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] ProZilla Buffer Overflow (Exploit)"

    Relevant Pages

    • [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)
    • [NT] Ipswitch Multiple Vulnerabilities (IMail IMAP LIST Command DoS, Collaboration Suite SMTP Format
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Ipswitch Multiple Vulnerabilities (IMail IMAP LIST Command DoS, ... Collaboration Suite SMTP Format String) ... Remote exploitation of a denial of service vulnerability in Ipswitch ...
      (Securiteam)