Re: NTLM HTTP Authentication is insecure by design - a new writeup by Amit Klein

From: Amit Klein (AKsecurity) (aksecurity_at_hotpop.com)
Date: 07/19/05

  • Next message: CIRT.DK Advisory: "[TOOLS] CIRT.DK WebRoot Version v.1.7"
    Date: Tue, 19 Jul 2005 20:22:59 +0200
    To: 3APA3A <3APA3A@SECURITY.NNOV.RU>
    
    

    Dear 3APA3A,

    On 19 Jul 2005 at 13:35, 3APA3A wrote:

    > Dear Amit Klein (AKsecurity),
    >
    >
    >
    > --Monday, July 18, 2005, 9:40:32 PM, you wrote to bugtraq@securityfocus.com:
    >
    > AKA> NTLM HTTP Authentication
    > AKA> (and possibly other connection-oriented
    > AKA> HTTP authentication and authorization protocols)
    > AKA> is insecure by design
    >
    > NTLM authentication is insecure by design for external authentication,
    > because of "single signon" ideology. NTLM authentication can be used
    > for NTLM proxy attack. For example, attacker who can hijack or spoof
    > server connection with NTLM authentication can use this connection to
    > access different Web server, mail server or file server with client's
    > credentials. This is known for many years and was discussed for many
    > times.

    While not downplaying this remark, I'd say that:

    1. By this argument, any non-cryptographically strong protocol should be considered
    insecure by design. I don't think that's what people have in mind. I think that per each
    protocol, there's a set of expectations. For example, no-one expects NTLM auth to protect
    data in transit. But people do expect NTLM not to by bypassed by silly methods.

    2. I see a big difference between spoofing and hijacking attacks, which require non trivial
    skill set, and the attack I described, which, given the right preconditions, is so easy to
    mount that it can be done so accidentally.

    Few years ago Internet Explorer was patched to use NTLM
    > authentication only for local network zone. Local network are hosts
    > with NetBIOS name (for example WEBSRV, excluded by default from proxy)
    > and list of proxy exclusions.
    >

    Uh, I don't think so. From my experiments with IE 6.0, it happily engages in NTLM
    authentication on non local network sites. In fact, there are many sites on the Internet
    which require NTLM authentication. For example, OWA 2000/2003...

    > So, under default configuration, NTLM will not be used through proxy
    > server, at least in Internet Explorer.
    >

    As a result of my former comment, I have to disagree. There ARE websites that require NTLM
    authentication, IE DOES perform it, so there's no theoretic reason why there shouldn't be
    proxy servers in between.

    Thanks,
    -Amit


  • Next message: CIRT.DK Advisory: "[TOOLS] CIRT.DK WebRoot Version v.1.7"

    Relevant Pages

    • Re: Integrated Windows Authentication Timeout?
      ... Do you see anything different for the NTLM requests? ... You might consider enabling protocol transition authentication since you are ... Joe Kaplan-MS MVP Directory Services Programming ... server. ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Integrated Windows Authentication Timeout?
      ... Is it possible that a different host name is being used for one of the subsequent requests that would break Kerberos auth? ... If you have "Negotiate" authentication set in the metabase, then this can still negotiate down to NTLM if for some reason the protocol thinks that Kerberos is unavailable. ... server. ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Is NTLM Authentication very expensive? (for bandwidth)
      ... When Internet Explorer has established a connection with the server by ... especially not when you use NTLM authentication. ... NTLM uses a permanant channel. ... > server sends 3827 bytes to the client. ...
      (microsoft.public.inetserver.iis.security)
    • SSPI/NTLM between native code and managed code fails for Windows 2
      ... I have an appliction that uses C++/CLI code for the client side of an NTLM ... The server and client code run on different machines and use TCP/IP to throw ... the "token" back and forth until authentication occurs. ...
      (microsoft.public.platformsdk.security)
    • Re: Exchange SMTP Hole?
      ... Maybe authenticated SMTP using some weak credentials? ... A worrisome new kind of attack is making the rounds on the ... 2000 Server have relaying turned off by default!" ... authentication on any SMTP virtual server that faces the Internet. ...
      (Focus-Microsoft)