Likes Likes:  0
Resultaten 1 tot 15 van de 26
Pagina 1 van de 2 1 2 LaatsteLaatste
Geen
  1. #1
    Marc Maiffret
    EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption

    Microsoft ASN.1 Library Length Overflow Heap Corruption

    Release Date:
    February 10, 2004

    Date Reported:
    July 25, 2003

    Severity:
    High (Remote Code Execution)

    Systems Affected:
    Microsoft Windows NT 4.0 (all versions)
    Microsoft Windows 2000 (SP3 and earlier)
    Microsoft Windows XP (all versions)

    Software Affected:
    Microsoft Internet Explorer
    Microsoft Outlook
    Microsoft Outlook Express
    Third-party applications that use certificates

    Services Affected:
    Kerberos (UDP/88)
    Microsoft IIS using SSL
    NTLMv2 authentication (TCP/135, 139, 445)

    Preamble:

    We wanted to do another Night Before Xmas but the vendor missed the last
    few release dates, so we had to resort to our MC(SE).

    U Can't Trust This
    By: MCSE Hammer

    Blaster did ya some harm
    We just say, hey, another worm
    But thank you, for trusting me
    To mind your site's security
    It's all good, when your server's downed
    Our dope PR will pass blame around
    Cuz it's known as such
    That this is some software, you can't trust

    I told ya Homeland
    U can't trust this
    Yeah that's why we're giving ya the code
    U can't trust this
    Check out eEye, man
    U can't trust this
    Yo let 'em bust more funky system
    U can't trust this

    Give 'em a string or recvfrom
    Like no sweat they got the keys to your kingdom
    Now ya know
    You talk about eEye, you're talking about holes
    Remote and tight
    Coders still sweating so someone better write
    A book to learn
    What it's gonna take in '04
    To earn some trust
    Legit, either secure or ya might as well quit

    That's the word because you know
    U can't trust this
    U can't trust this

    Breakin' in

    Stop -- eEye time

    Description:
    eEye Digital Security has discovered a critical vulnerability in
    Microsoft's ASN.1 library (MSASN1.DLL) that would allow an attacker to
    overwrite heap memory on a susceptible machine and cause the execution
    of arbitrary code. Because this library is widely used by Windows
    security subsystems, the vulnerability is exposed through an array of
    avenues, including Kerberos, NTLMv2 authentication, and applications
    that make use of certificates (SSL, digitally-signed e-mail, signed
    ActiveX controls, etc.).

    Technical Description:
    The MSASN1 library is fraught with integer overflows. In this advisory,
    we'll describe a pair of arithmetic errors in a generic and low-level
    part of ASN.1 BER decoding that allow a very large swath of heap memory
    to be overwritten. This vulnerability affects basically any client of
    MSASN1.DLL, the most interesting of which are LSASS.EXE and CRYPT32.DLL
    (and therefore any application that uses CRYPT32.DLL).

    Although the specifics of ASN.1 BER encoding are beyond the scope of
    this advisory, the basic idea is that it's an encoding scheme for
    flexibly representing binary data, and is often compared to "binary
    XML." Each piece of data is encoded as a typed value, which is
    constructed as a tag number that describes how to interpret the
    following value data, then the length of the data, and finally, the data
    itself. This length field is the subject of our advisory. By supplying
    a very large value (from 0xFFFFFFFD to 0xFFFFFFFF) in this field, we can
    cause an integer overflow in a heap allocation routine, and although
    there are checks in place to ensure the validity of a value's length, a
    separate pointer arithmetic overflow in the verification routine gives
    rise to the vulnerability. Here's how:

    1. When a simple value (a value that consists of atomic data, rather
    than more values) is decoded by MSASN1, ASN1BERDecLength() is called to
    retrieve the length of the value, then passes the reported length to the
    ASN1BERDecCheck() function to make sure that that much data actually
    exists.

    2. ASN1BERDecCheck() verifies that (pointer_to_start_of_data +
    reported_length_of_data), unsigned, is less than or equal to
    (pointer_to_start_of_BER_block + total_size_of_BER_block). If not, the
    function returns failure, which propagates back up the call stack and
    causes decoding to stop. (As an aside, it's interesting to note that
    this vulnerability was silently fixed in Windows 2000 SP4 and Windows
    Server 2003, due to an additional comparison being included in
    ASN1BERDecCheck().)

    3. If the function that called ASN1BERDecLength() then attempts to
    allocate memory and make a copy of the data (e.g.,
    ASN1BERDecOctetString(), but not the ASN1BERDecOctetString2() variant),
    it will then pass the decoded length to DecMemAlloc(), which rounds the
    length up to a DWORD multiple and then attempts to allocate the result.
    The operation of this function can be represented as
    "LocalAlloc(LMEM_ZEROINIT, (length + 3) & ~3)."

    4. If DecMemAlloc() succeeds, the calling function then memcpy()'s the
    value data into the allocated heap buffer, using the original decoded
    length of the value as the byte count.

    If a very large length is decoded by ASN1BERDecLength() in step 1, then
    there will be an integer overflow when ASN1BERDecCheck() adds the length
    to the current data pointer in step 2, essentially causing the resulting
    pointer to "wrap around" the 32-bit address space and therefore have an
    address that is numerically less than the pointer to the end of the
    buffer.

    Now, to be more specific, if a length in the range 0xFFFFFFFD through
    0xFFFFFFFF is given, it will pass through ASN1BERDecCheck() with no
    problem, and then something really bad happens. Because of the
    round-off in DecMemAlloc(), the three lengths in this range will all
    round "up" to zero. LocalAlloc() successfully allocates a zero-length
    heap block whose address gets returned to the caller, but then the
    original, very large length is handed to memcpy(). The result is a
    classic, complete heap overwrite, where all contiguous heap memory
    following the zero-length block is wiped out by arbitrary data.

    The simplest way to manifest this condition is to encode a simple octet
    string (tag 04h) with a length-of-length set to 4 and a length of
    0xFFFFFFFF, which corresponds to the bytes 04h/84h/FFh/FFh/FFh/FFh.
    Depending on which decoder functions the MSASN1 client uses, it is also
    possible to leverage this vulnerability through OIDs and character
    strings as well. The following is a sampling of vulnerable decoder
    functions:

    ASN1BerDecCharString
    ASN1BERDecChar16String
    ASN1BERDecChar32String
    ASN1BERDecEoid
    ASN1BERDecGeneralizedTime
    ASN1BERDecMultibyteString
    ASN1BERDecOctetString
    ASN1BERDecOpenType
    ASN1BERDecSXVal
    ASN1BERDecUTCTime
    ASN1BERDecUTF8String
    ASN1BERDecZeroCharString
    ASN1BERDecZeroChar16String
    ASN1BERDecZeroChar32String
    ASN1BERDecZeroMultibyteString

    Note: Due to the technical nature of the vulnerability described above,
    this advisory may contain disassembly and/or hexadecimal byte codes.
    This information is in no way related to "exploit code", "payloads", or
    "shell code".

    Protection:
    Retina Network Security Scanner has been updated to identify this
    vulnerability:
    http://www.eeye.com/html/Products/Retina/index.html

    Vendor Status:
    Microsoft has released a patch for this vulnerability. The patch is
    available at:
    http://www.microsoft.com/technet/sec...n/MS04-007.asp

    Credit:
    Discovery: Derek Soeder
    Additional Research: Yuji Ukai

    Very Special Thanks:
    Yuji Ukai, again, for the majority of "The Menu"
    Steve Peters and Shawn O'Donnell for extreme ASN.1 (BER!) and
    certificate lore

    Greetings:
    DDDDDD; GM-TX, BMNN-FL, JKP-FL, NV-TX; Heather & Heather; all the coffee
    shop folks; 214; and always, every last one of the eEye crew

    Copyright (c) 1998-2004 eEye Digital Security
    Permission is hereby granted for the redistribution of this alert
    electronically. It is not to be edited in any way without express
    consent of eEye. If you wish to reprint the whole or any part of this
    alert in any other medium excluding electronic medium, please e-mail
    alert@eEye.com for permission.

    Disclaimer
    The information within this paper may change without notice. Use of this
    information constitutes acceptance for use in an AS IS condition. There
    are NO warranties with regard to this information. In no event shall the
    author be liable for any damages whatsoever arising out of or in
    connection with the use or spread of this information. Any use of this
    information is at the user's own risk.

    Feedback
    Please send suggestions, updates, and comments to:

    eEye Digital Security
    http://www.eEye.com
    info@eEye.com

  2. #2
    Joe Blatz
    EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    RE: EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption

    In the security bulletin published by MS it states,
    "In the most likely exploitable scenario, an attacker
    would have to have direct access to the user's
    network."

    The bulletin published by eEye states "...applications
    that make use of certificates (SSL, digitally-signed
    e-mail, signed ActiveX controls, etc.) [are
    affected]".

    I see a big disconnect there. Can you address this?
    Also, how would this potentially affect sites that are
    using an MS VPN solution?


    > -----Original Message-----
    > From: Marc Maiffret [mailto:mmaiffret@eeye.com]
    > Sent: Tuesday, February 10, 2004 10:20 AM
    > To: BUGTRAQ@securityfocus.com
    > Subject: EEYE: Microsoft ASN.1 Library Length
    > Overflow Heap Corruption
    >
    > Microsoft ASN.1 Library Length Overflow Heap
    > Corruption
    >
    > Release Date:
    > February 10, 2004
    >
    > Date Reported:
    > July 25, 2003
    >
    > Severity:
    > High (Remote Code Execution)
    >
    > Systems Affected:
    > Microsoft Windows NT 4.0 (all versions)
    > Microsoft Windows 2000 (SP3 and earlier)
    > Microsoft Windows XP (all versions)
    >
    > Software Affected:
    > Microsoft Internet Explorer
    > Microsoft Outlook
    > Microsoft Outlook Express
    > Third-party applications that use certificates
    >
    > Services Affected:
    > Kerberos (UDP/88)
    > Microsoft IIS using SSL
    > NTLMv2 authentication (TCP/135, 139, 445)


    __________________________________
    Do you Yahoo!?
    Yahoo! Finance: Get your refund fast by filing online.
    http://taxes.yahoo.com/filing.html

  3. #3
    Marc Maiffret
    EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    RE: EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption

    This attack can be performed through various encryption systems such as
    Kerberos and almost anything using CERTs... I am not sure about
    Microsofts wording in their advisory.

    Signed,
    Marc Maiffret
    Chief Hacking Officer
    eEye Digital Security
    T.949.349.9062
    F.949.349.9538
    http://eEye.com/Retina - Network Security Scanner
    http://eEye.com/Iris - Network Traffic Analyzer
    http://eEye.com/SecureIIS - Stop known and unknown IIS vulnerabilities=20

    Important Notice: This email is confidential, may be legally privileged,
    and is for the intended recipient only. Access, disclosure, copying,
    distribution, or reliance on any of it by anyone else is prohibited and
    may be a criminal offense. Please delete if obtained in error and email
    confirmation to the sender.=20

    | -----Original Message-----
    | From: Joe Blatz [mailto:sd_wireless@yahoo.com]=20
    | Sent: Tuesday, February 10, 2004 11:36 AM
    | To: Marc Maiffret; BUGTRAQ@securityfocus.com
    | Subject: RE: EEYE: Microsoft ASN.1 Library Length Overflow=20
    | Heap Corruption
    |=20
    | In the security bulletin published by MS it states, "In the=20
    | most likely exploitable scenario, an attacker would have to=20
    | have direct access to the user's network."
    |=20
    | The bulletin published by eEye states "...applications that=20
    | make use of certificates (SSL, digitally-signed e-mail,=20
    | signed ActiveX controls, etc.) [are affected]".
    |=20
    | I see a big disconnect there. Can you address this?
    | Also, how would this potentially affect sites that are using=20
    | an MS VPN solution?
    |=20
    |=20
    | > -----Original Message-----
    | > From: Marc Maiffret [mailto:mmaiffret@eeye.com]
    | > Sent: Tuesday, February 10, 2004 10:20 AM
    | > To: BUGTRAQ@securityfocus.com
    | > Subject: EEYE: Microsoft ASN.1 Library Length Overflow Heap=20
    | Corruption
    | >=20
    | > Microsoft ASN.1 Library Length Overflow Heap Corruption
    | >=20
    | > Release Date:
    | > February 10, 2004
    | >=20
    | > Date Reported:
    | > July 25, 2003
    | >=20
    | > Severity:
    | > High (Remote Code Execution)
    | >=20
    | > Systems Affected:
    | > Microsoft Windows NT 4.0 (all versions) Microsoft Windows 2000 (SP3=20
    | > and earlier) Microsoft Windows XP (all versions)
    | >=20
    | > Software Affected:
    | > Microsoft Internet Explorer
    | > Microsoft Outlook
    | > Microsoft Outlook Express
    | > Third-party applications that use certificates
    | >=20
    | > Services Affected:
    | > Kerberos (UDP/88)
    | > Microsoft IIS using SSL
    | > NTLMv2 authentication (TCP/135, 139, 445)
    |=20
    | __________________________________
    | Do you Yahoo!?
    | Yahoo! Finance: Get your refund fast by filing online.
    | http://taxes.yahoo.com/filing.html
    |=20

  4. #4
    Rainer Gerhards
    EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    RE: EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption

    I think Microsoft is using wording to keep the typical end user in a
    warm and cozy state. Technically, except for AD services, each client
    has a full server implementation and as such should be vulnerable. I
    assume that many of those DSL-connected, non-firewalled home machines
    are easy targets.

    And that the server is more likely to be attacked is just an assumption
    - in the days of class A vuln sweeps and random worm scans, I don't
    think that servers are at most risk. In fact, I think the unprotected
    home machines are...

    Rainer=20

    > -----Original Message-----
    > From: Tina Bird [mailto:tbird@precision-guesswork.com]=20
    > Sent: Tuesday, February 10, 2004 9:41 PM
    > To: Marc Maiffret
    > Cc: Joe Blatz; BUGTRAQ@securityfocus.com
    > Subject: RE: EEYE: Microsoft ASN.1 Library Length Overflow=20
    > Heap Corruption
    >=20
    >=20
    > On Tue, 10 Feb 2004, Marc Maiffret wrote:
    >=20
    > > This attack can be performed through various encryption=20

    > systems such as
    > > Kerberos and almost anything using CERTs... I am not sure about
    > > Microsofts wording in their advisory.

    >=20
    > Microsoft also states that servers are likelier to be=20
    > attacked using this
    > vulnerability than clients are, because they're likelier to=20
    > be decoding
    > ASN.1 data. But if the vulnerable code can be accessed via LSASS.exe,
    > doesn't that mean all systems are at risk?
    >=20
    > thanks for any info -- tbird
    >=20
    > --
    > It doesn't have to be our fault to be our responsibility.
    >=20
    > -- Paul Robertson
    >=20
    > http://www.precision-guesswork.com
    > Log Analysis http://www.loganalysis.org
    > VPN http://vpn.shmoo.com
    > tbird's Security Alerts http://securecomputing.stanford.edu/alert.html
    >=20


  5. #5
    Tina Bird
    EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    RE: EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption


    On Tue, 10 Feb 2004, Marc Maiffret wrote:

    > This attack can be performed through various encryption systems such as
    > Kerberos and almost anything using CERTs... I am not sure about
    > Microsofts wording in their advisory.


    Microsoft also states that servers are likelier to be attacked using this
    vulnerability than clients are, because they're likelier to be decoding
    ASN.1 data. But if the vulnerable code can be accessed via LSASS.exe,
    doesn't that mean all systems are at risk?

    thanks for any info -- tbird

    --
    It doesn't have to be our fault to be our responsibility.

    -- Paul Robertson

    http://www.precision-guesswork.com
    Log Analysis http://www.loganalysis.org
    VPN http://vpn.shmoo.com
    tbird's Security Alerts http://securecomputing.stanford.edu/alert.html

  6. #6
    Marc Maiffret
    EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    RE: EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption

    Yes, I am not sure what Microsoft did with the wording there that seems
    to be misleading to at least a few people so far.

    There is just as much, if not more, chance of people using this
    vulnerability on server side applications as there is on client-side
    applications.

    For example we setup a totally IPSEC secured network and we broke into
    that network via our ASN bug which is called by the Kerberos. We also
    have written exploits that take advantage of ASN via NTLMv2
    authentication. And the list goes on... How about evil ASN SSL CERTs?
    Client or server? There is a menu a mile long for the avenues of attacks
    that this thing can be used for.

    If your running, Windows NT 4.0, Windows 2000, Windows XP, or Windows
    2003, you are 99.9999% positive to be vulnerable, regardless of what
    your configuration might be. Don't try to guess if you have any of the
    affected protocols or applications (lets not forget third party apps
    using the MS ASN library), just install the patch.=20

    Client side, server side, world wide.

    Signed,
    Marc Maiffret
    Chief Hacking Officer
    eEye Digital Security
    T.949.349.9062
    F.949.349.9538
    http://eEye.com/Retina - Network Security Scanner
    http://eEye.com/Iris - Network Traffic Analyzer
    http://eEye.com/SecureIIS - Stop known and unknown IIS vulnerabilities=20

    Important Notice: This email is confidential, may be legally privileged,
    and is for the intended recipient only. Access, disclosure, copying,
    distribution, or reliance on any of it by anyone else is prohibited and
    may be a criminal offense. Please delete if obtained in error and email
    confirmation to the sender.=20

    | -----Original Message-----
    | From: Tina Bird [mailto:tbird@precision-guesswork.com]=20
    | Sent: Tuesday, February 10, 2004 12:41 PM
    | To: Marc Maiffret
    | Cc: Joe Blatz; BUGTRAQ@securityfocus.com
    | Subject: RE: EEYE: Microsoft ASN.1 Library Length Overflow=20
    | Heap Corruption
    |=20
    |=20
    | On Tue, 10 Feb 2004, Marc Maiffret wrote:
    |=20
    | > This attack can be performed through various encryption=20
    | systems such=20
    | > as Kerberos and almost anything using CERTs... I am not sure about=20
    | > Microsofts wording in their advisory.
    |=20
    | Microsoft also states that servers are likelier to be=20
    | attacked using this vulnerability than clients are, because=20
    | they're likelier to be decoding
    | ASN.1 data. But if the vulnerable code can be accessed via=20
    | LSASS.exe, doesn't that mean all systems are at risk?
    |=20
    | thanks for any info -- tbird
    |=20
    | --
    | It doesn't have to be our fault to be our responsibility.
    |=20
    | -- Paul Robertson
    |=20
    | http://www.precision-guesswork.com
    | Log Analysis http://www.loganalysis.org
    | VPN http://vpn.shmoo.com
    | tbird's Security Alerts http://securecomputing.stanford.edu/alert.html
    |=20

  7. #7
    Tim Eddy
    EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    RE: EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption

    Marc,

    If we remove the default exemptions for Kerberos & RSVP from IPSEC with
    the "NoDefaultExempt" registry key, this still passes IKE. Therefore is
    IKE vulnerable to the ASN bug?

    Thanks,
    Tim



    >>> "Marc Maiffret" <mmaiffret@eeye.com> 11/02/2004 7:47:29 am >>>

    Yes, I am not sure what Microsoft did with the wording there that
    seems
    to be misleading to at least a few people so far.

    There is just as much, if not more, chance of people using this
    vulnerability on server side applications as there is on client-side
    applications.

    For example we setup a totally IPSEC secured network and we broke into
    that network via our ASN bug which is called by the Kerberos. We also
    have written exploits that take advantage of ASN via NTLMv2
    authentication. And the list goes on... How about evil ASN SSL CERTs?
    Client or server? There is a menu a mile long for the avenues of
    attacks
    that this thing can be used for.

    If your running, Windows NT 4.0, Windows 2000, Windows XP, or Windows
    2003, you are 99.9999% positive to be vulnerable, regardless of what
    your configuration might be. Don't try to guess if you have any of the
    affected protocols or applications (lets not forget third party apps
    using the MS ASN library), just install the patch.

    Client side, server side, world wide.

    Signed,
    Marc Maiffret
    Chief Hacking Officer
    eEye Digital Security
    T.949.349.9062
    F.949.349.9538
    http://eEye.com/Retina - Network Security Scanner
    http://eEye.com/Iris - Network Traffic Analyzer
    http://eEye.com/SecureIIS - Stop known and unknown IIS vulnerabilities


    Important Notice: This email is confidential, may be legally
    privileged,
    and is for the intended recipient only. Access, disclosure, copying,
    distribution, or reliance on any of it by anyone else is prohibited
    and
    may be a criminal offense. Please delete if obtained in error and
    email
    confirmation to the sender.

    | -----Original Message-----
    | From: Tina Bird [mailto:tbird@precision-guesswork.com]
    | Sent: Tuesday, February 10, 2004 12:41 PM
    | To: Marc Maiffret
    | Cc: Joe Blatz; BUGTRAQ@securityfocus.com
    | Subject: RE: EEYE: Microsoft ASN.1 Library Length Overflow
    | Heap Corruption
    |
    |
    | On Tue, 10 Feb 2004, Marc Maiffret wrote:
    |
    | > This attack can be performed through various encryption
    | systems such
    | > as Kerberos and almost anything using CERTs... I am not sure about

    | > Microsofts wording in their advisory.
    |
    | Microsoft also states that servers are likelier to be
    | attacked using this vulnerability than clients are, because
    | they're likelier to be decoding
    | ASN.1 data. But if the vulnerable code can be accessed via
    | LSASS.exe, doesn't that mean all systems are at risk?
    |
    | thanks for any info -- tbird
    |
    | --
    | It doesn't have to be our fault to be our responsibility.
    |
    | -- Paul Robertson
    |
    | http://www.precision-guesswork.com
    | Log Analysis http://www.loganalysis.org
    | VPN http://vpn.shmoo.com
    | tbird's Security Alerts
    http://securecomputing.stanford.edu/alert.html
    |


    ************************************************** ********************
    ***** IMPORTANT INFORMATION *****
    This document should be read only by those persons to whom
    it is addressed and its content is not intended for use by
    any other persons. If you have received this message in
    error, please notify us immediately. Please also destroy and
    delete the message from your computer. Any unauthorised form
    of reproduction of this message is strictly prohibited.
    St.George is not liable for the proper and complete transmission
    of the information contained in this communication, nor for any
    delay in its receipt.
    ************************************************** ********************


  8. #8
    James Riden
    EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    Re: EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption

    "Marc Maiffret" <mmaiffret@eeye.com> writes:

    > This attack can be performed through various encryption systems such as
    > Kerberos and almost anything using CERTs... I am not sure about
    > Microsofts wording in their advisory.


    I think they use the ominous phrase "many possible vectors"; if
    anything kicks off, containing it may not be anything like as easy as
    blocking 135/tcp. How easy does it look to exploit it?

    Regardless, this one is going to get patched ASAP here.

    --
    James Riden / j.riden@massey.ac.nz / Systems Security Engineer
    GPG public key available at: http://www.massey.ac.nz/~jriden/
    This post does not necessarily represent the views of my employer.


  9. #9
    Rainer Gerhards
    EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    RE: EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption

    > > And that the server is more likely to be attacked is just=20
    > an assumption
    > > - in the days of class A vuln sweeps and random worm scans, I don't
    > > think that servers are at most risk. In fact, I think the=20

    > unprotected
    > > home machines are...
    > >

    > Yes, but...
    >=20
    > In order to trigger the ASN.1 vulnerabilities an attacker has=20
    > to be able
    > to get the target machine to invoke its BER decoding capabilities. I
    > certainly don't know the details -- maybe someone here does?=20
    > -- but it's
    > gotta be a little difficult to send a random network packet to get a
    > desktop machine (that is, not a domain controller or an AD server or
    > something) and get it to invoke MSASN1.


    As of my understanding (I haven't tried to reproduce, just theory here),
    ASN.1 is not only used for AD, but also for NTLM authentication. Even if
    that is not the case, there are several cases where ASN.1 is used. And
    "invoking BER decoding capabilities" (from the MS Advisory) may sound
    like something seldomly done... In fact, if you receive ASN.1 on the
    wire, you need to decode BER because this is the way you get hold of the
    message content. It is the same thing as "decoding the SMTP message" is
    a bare necessity for any mail server because it otherwise can not talk
    SMTP

    As someone else pointed out, there is also a potential large multitude
    of third party apps which rely on the Microsoft lib. This alone is a
    good indication an update is needed.

    But I think the bottom line of all this is if a box is listening to 135,
    139 OR 445, it is vulnerable. And workstations by default listen to this
    ports.

    [A good thing to keep in mind is that for NT4/Win2000 it was just a
    registry switch that told the software if it is a server or workstation
    os. In essence, almost all services are still the same. AD is an
    exception, but there are still an awful lot of server services running
    on the workstation - they must, e.g. for peer-to-peer file and printer
    sharing...].

    >=20
    > I can imagine lots of attacks that require user intervention=20
    > to hit this
    > one (like opening a hostile SSL-based web site) -- but can this be
    > triggered without user intervention?


    I am pretty sure it can.

    Rainer

  10. #10
    Alun Jones
    EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    RE: EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption

    > -----Original Message-----
    > From: Rainer Gerhards [mailtogerhards@hq.adiscon.com]
    > Sent: Tuesday, February 10, 2004 3:36 PM
    >
    > I think Microsoft is using wording to keep the typical end user in a
    > warm and cozy state.


    How so, exactly? It _is_ marked as a Critical Security Update. What are
    you looking for, "no, really, we mean it this time"?

    Alun.
    ~~~~
    --
    Texas Imperial Software | Find us at http://www.wftpd.com or email
    1602 Harvest Moon Place | alun@texis.com.
    Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers.
    Fax/Voice +1(512)258-9858 | Try our NEW client software, WFTPD Explorer.


  11. #11
    Drew Copley
    EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    RE: EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption

    =20

    > -----Original Message-----
    > From: Rainer Gerhards [mailtogerhards@hq.adiscon.com]=20
    > Sent: Wednesday, February 11, 2004 1:11 AM
    > To: Tina Bird
    > Cc: BUGTRAQ@securityfocus.com
    > Subject: RE: EEYE: Microsoft ASN.1 Library Length Overflow=20
    > Heap Corruption
    >=20

    <snip>

    > But I think the bottom line of all this is if a box is=20
    > listening to 135,
    > 139 OR 445, it is vulnerable. And workstations by default=20
    > listen to this ports.


    If you use Outlook, you are vulnerable.

    If you use Internet Explorer, you are vulnerable.

    If you use Outlook Express, you are vulnerable.

    "Software Affected:
    Microsoft Internet Explorer
    Microsoft Outlook
    Microsoft Outlook Express
    Third-party applications that use certificates"

    Ref: http://www.eeye.com/html/Research/Ad...D20040210.html

    Speaking of this bug.

    We have noted, perhaps outside of the advisory, that we could send a
    malformed, digitally signed email and it could be the exploit point --
    further, the email would not even have to be viewed.=20

    That is just one potential avenue of attack.




    <snip>

    > I am pretty sure it can.
    >=20
    > Rainer
    >=20
    >=20


  12. #12
    Timothy J.Miller
    EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    Re: EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption

    On Feb 10, 2004, at 4:16 PM, Tim Eddy wrote:

    > Marc,
    >
    > If we remove the default exemptions for Kerberos & RSVP from IPSEC with
    > the "NoDefaultExempt" registry key, this still passes IKE. Therefore is
    > IKE vulnerable to the ASN bug?


    Very likely, as IKE data is marshaled into ASN.1 format. The fun part
    about ASN.1 is it's so damn useful you tend to use it *everywhere*.

    Is anyone else wondering why MS didn't fix this with the last round of
    ASN.1 decoding overflow vulnerabilities (remember the SNMP hole)? It's
    basically the same problem.

    -- Cerebus


  13. #13
    Steve Friedl
    EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    Re: EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption

    On Wed, Feb 11, 2004 at 10:10:32AM +0100, Rainer Gerhards wrote:
    > As someone else pointed out, there is also a potential large multitude
    > of third party apps which rely on the Microsoft lib. This alone is a
    > good indication an update is needed.


    I wrote a small dependency-checker, and on my win2000 system it showed
    that 232 DLLs depended directly or indirectly on the MSASN1.DLL. It's a
    pretty wide range of programs that have this in their address space.

    It's a lot harder to find which programs actually *use* it, but checking
    Process Explorer shows quite a few applications that have it loaded;

    Quicken 2003
    Yahoo! IM
    AOL IM
    SecureCRT
    Adobe Acrobat
    MusicMatch Jukebox
    Turbo Tax 2003
    JASC PaintShop Pro
    Altova XML Spy

    NOTE: this does NOT mean that these applications are vulnerable to
    anything (even "potentially"). But it suggests a lot of places to
    look for stuff.

    > But I think the bottom line of all this is if a box is listening to 135,
    > 139 OR 445, it is vulnerable. And workstations by default listen to this
    > ports.


    kerberos is a prime suspect too: 88/tcp and 88/ucp.

    Steve

    --
    Stephen J Friedl | Software Consultant | Tustin, CA | +1 714 544-6561
    www.unixwiz.net | I speak for me only | KA8CMY | steve@unixwiz.net

  14. #14
    EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    RE: EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption

    From the MS04-07 bulletin, Windows 9x is not mentioned. Someone has asked
    whether Windows 98 is vulnerable to this attack or not. It could be that
    Windows 98/ME are vulnerable to this attack through the installation of
    Office suite.

    The following link refers to the msasn1.dll on Windows ME. But, Windows ME
    is not included in the security bulletin on Microsoft website. Then, the
    question is whether Windows ME is vulnerable to this attack?
    http://216.239.41.104/search?q=cache...crypt32_import
    s.html+ASN1BERDecOctetString&hl=en&ie=UTF-8

    Below are a snapshot for usage of MSASN1.DLL. What a "monoculture
    vulnerability" as far as the DLL base address is concerned!

    ========================
    On Windows NT:
    30 Module: 6af00000: C:\WINNT\System32\MSAsn1.DLL for E:\PROGRAM
    FILES\MICROSOFT OFFICE\OFFICE\OUTLOOK.EXE

    On Windows 2K:
    30 Module: 77430000: F:\WIN2K\system32\MSASN1.DLL for
    \??\F:\WIN2K\SYSTEM32\WINLOGON.EXE
    58 Module: 77430000: F:\WIN2K\system32\MSASN1.DLL for
    F:\WIN2K\SYSTEM32\SERVICES.EXE
    16 Module: 77430000: F:\WIN2K\system32\MSASN1.DLL for
    F:\WIN2K\SYSTEM32\LSASS.EXE
    47 Module: 77430000: F:\WIN2K\system32\MSASN1.DLL for
    F:\WIN2K\SYSTEM32\SPOOLSV.EXE
    56 Module: 77430000: f:\win2k\system32\MSASN1.DLL for
    F:\WIN2K\SYSTEM32\SVCHOST.EXE
    40 Module: 77430000: F:\WIN2K\system32\MSASN1.DLL for
    F:\PROGRA~1\MICROS~3\MSSQL\BINN\SQLSERVR.EXE
    26 Module: 77430000: F:\WIN2K\system32\MSASN1.DLL for
    F:\WIN2K\SYSTEM32\INETSRV\INETINFO.EXE
    11 Module: 77430000: F:\WIN2K\System32\MSASN1.DLL for
    F:\WIN2K\SYSTEM32\MQSVC.EXE

    On Windows XP:
    11 Module: 762a0000: C:\WINDOWS\system32\MSASN1.dll for
    \??\C:\WINDOWS\SYSTEM32\WINLOGON.EXE
    15 Module: 762a0000: C:\WINDOWS\system32\MSASN1.dll for
    C:\WINDOWS\SYSTEM32\LSASS.EXE
    39 Module: 762a0000: C:\WINDOWS\system32\MSASN1.dll for
    C:\WINDOWS\SYSTEM32\SVCHOST.EXE
    20 Module: 762a0000: C:\WINDOWS\system32\MSASN1.dll for
    C:\WINDOWS\SYSTEM32\SVCHOST.EXE
    24 Module: 762a0000: C:\WINDOWS\system32\MSASN1.dll for
    C:\WINDOWS\SYSTEM32\SPOOLSV.EXE
    40 Module: 762a0000: C:\WINDOWS\system32\MSASN1.dll for
    C:\WINDOWS\EXPLORER.EXE
    34 Module: 762a0000: C:\WINDOWS\system32\MSASN1.dll for C:\PROGRAM
    FILES\MICROSOFT OFFICE\OFFICE\OUTLOOK.EXE
    29 Module: 762a0000: C:\WINDOWS\system32\MSASN1.dll for C:\WINDOWS\HH.EXE
    67 Module: 762a0000: C:\WINDOWS\system32\MSASN1.dll for C:\PROGRAM
    FILES\ADOBE\ACROBAT 4.0\ACROBAT\ACROBAT.EXE
    ========================

    So, it seems that potential exploit of this vulnerability can be direct like
    DCOM-RPC or through emails or even PDF files?

    Peter Huang
    http://www.ossecurity.ca/
    MyDoom, YourDoom, are we all doomed?

    > -----Original Message-----
    > From: Marc Maiffret [mailto:mmaiffret@eeye.com]
    > Sent: Tuesday, February 10, 2004 3:47 PM
    > To: Tina Bird
    > Cc: Joe Blatz; BUGTRAQ@securityfocus.com
    > Subject: RE: EEYE: Microsoft ASN.1 Library Length Overflow Heap
    > Corruption
    >
    >
    > Yes, I am not sure what Microsoft did with the wording there that seems
    > to be misleading to at least a few people so far.



  15. #15
    Sam Schinke
    EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    Re: EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption

    Hello Marc,

    Tuesday, February 10, 2004, 12:47:29 PM, you wrote:
    MM> For example we setup a totally IPSEC secured network and we broke
    MM> into that network via our ASN bug which is called by the Kerberos.
    MM> We also have written exploits that take advantage of ASN via
    MM> NTLMv2 authentication. And the list goes on... How about evil ASN
    MM> SSL CERTs? Client or server? There is a menu a mile long for the
    MM> avenues of attacks that this thing can be used for.

    I think some of the advisories (not yours) relating to this issue are
    a very opaque to end users since they only mention "SSL" (US-CERT gets
    to this level of detail, MS limits itself to platforms). SSL is just
    YATA (Yet Another Tech Acronym) to most users.

    Further to that, I believe Microsoft is verging on negligence (and
    it's not the first time, IMO) by neglecting to mention these
    particular vulnerability details.

    In particular their asserting that a "server" is more likely to be
    "vulnerable". A server is certainly more likely to be vulnerable to
    unsolicited network traffic, but there are a number of ways for client
    systems to be impacted by this (eg, all of the client software you
    mention in your advisory).

    Yes, a remote, packet-based exploit is about as bad as it gets (unless
    the vulnerability also doesn't require a TCP handshake), but as your
    release mentions, Outlook Express is also vulnerable (So much for
    previewing signed email!). If MS is serious about getting people to
    patch, people need to be able to tell, at a glance, whether anything
    they actually USE is vulnerable. Listing the OS is great, but
    excluding very vulnerable client software is shoddy and implying that
    systems used as clients aren't "likely" to be vulnerable (in any way)
    is a lie.

    I guess we'll see yet another revised MS KB. Does anyone have a count
    on how many of their security KB's have been (ahem) "revised" in the
    past year or two? I seem to recall at least two or three that severely
    understated the impact of various issues (like this one), or that
    later required revised severity levels.

    --
    Best regards,
    Sam mailto:sschinke@myrealbox.com


Pagina 1 van de 2 1 2 LaatsteLaatste

Webhostingtalk.nl

Contact

  • Rokin 113-115
  • 1012 KP, Amsterdam
  • Nederland
  • Contact
© Copyright 2001-2026 Webhostingtalk.nl.
Web Statistics