Stories
Slash Boxes
Comments

News for nerds, stuff that matters

TCP Vulnerability Published

Posted by michael on Tue Apr 20, 2004 02:16 PM
from the DOS-for-fun-and-profit dept.
Bob Slidell writes "According to Yahoo!, there is a critical flaw in TCP that affects everyone and everything. The article is scant on details and long on fear, hopefully someone will post more details on this." The advisory has more information, and is long on details but only moderate on fear.
This discussion has been archived. No new comments can be posted.
TCP Vulnerability Published | Log In/Create an Account | Top | 676 comments (Spill at 50!) | Index Only | Search Discussion
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1) | 2
  • OpenBSD is safe? (Score:5, Informative)

    by Anonymous Coward on Tuesday April 20 2004, @02:16PM (#8920405)

    This just hit the misc@openbsd mail list:
    Date: Tue, 20 Apr 2004 12:57:12 -0600
    From: Theo de Raadt <deraadt@cvs.openbsd.org>
    [snip]

    In the OpenBSD case, this is something not to worry about. For what
    they discuss, OpenBSD handles this extremely well.

    We'll explain more in a week or so.
    It sounds (again) like proactive security auditting saves the day!
    • Re:OpenBSD is safe? (Score:5, Funny)

      by Anonymous Coward on Tuesday April 20 2004, @02:20PM (#8920473)
      What about proactive spelling auditing?
      [ Parent ]
    • Re:OpenBSD is safe? (Score:5, Funny)

      by shatfield (199969) * on Tuesday April 20 2004, @02:20PM (#8920481)
      Great, I guess Microsoft will just have to copy the BSD TCP/IP code again to ensure that their customers are safe ;-)
      [ Parent ]
      • Re:OpenBSD is safe? (Score:5, Informative)

        by Jeremiah Cornelius (137) on Tuesday April 20 2004, @02:32PM (#8920652)
        (Last Journal: Tuesday November 27, @09:46PM)
        Yeah. The biggest problem here is the ease with which one could DoS the BGP-4 protocol.

        The Internet BGP tables are ricketey enough these days - they don't need every other route to "flap"!

        [ Parent ]
        • Re:OpenBSD is safe? (Score:4, Interesting)

          by Jeremiah Cornelius (137) on Tuesday April 20 2004, @03:04PM (#8921110)
          (Last Journal: Tuesday November 27, @09:46PM)
          Some genius modded my post as a Troll. I guess it's because they know so much about this vulnerability, and how the exposure goes up as one increases TCP window-size. ;-)

          Really, though. If you need to calculate a valid offset from the ISN, big TCP-window sizes are of advantage to the attacker.

          To quote from the announcement:

          In a TCP session, the endpoints can negotiate a TCP Window size. When this is taken into account, instead of attempting to send a spoofed packet with all potential sequence numbers, the attacker would only need to calculate an valid sequence number that falls within the next expected ISN plus or minus half the window size. Therefore, the larger the TCP Window size, the the larger the range of sequence numbers that will be accepted in the TCP stream.

          BGP-4 relies on persistent connections, with huge window sizes.

          [ Parent ]
          • Re:OpenBSD is safe? (Score:5, Interesting)

            by JPriest (547211) on Tuesday April 20 2004, @03:34PM (#8921560)
            (http://www.teaparty07.com/)
            As a side note, all the major sites with several BGP peering points have recently started using MD5 authentication. We have been updating all of our peering sessions over the last week or so.
            [ Parent ]
            • Re:OpenBSD is safe? by Jeremiah Cornelius (Score:1) Tuesday April 20 2004, @03:52PM
            • Re:OpenBSD is safe? (Score:4, Informative)

              by Silvers (196372) on Tuesday April 20 2004, @06:45PM (#8923580)
              If you are using MD5 encryption that is built into BGP4 that won't help you. That merely will stop route poisoning and such. As long as your underlying TCP/IP implementation isn't authenticating source/destination you can still get hosed.

              [ Parent ]
          • Re:OpenBSD is safe? (Score:4, Informative)

            by netwiz (33291) on Tuesday April 20 2004, @04:07PM (#8921977)
            (http://slashdot.org/)
            Or it might be that you just read the article, and more or less parroted what a more experienced individual said. Especialy given that anyone who deals w/ BGP on a regular basis knows (or better know) how to secure peering links against this kind of vulnerability.

            It's actually quite trivial to do. ebgp-multihop and using the remote host loopback address as the neighbor IP, along with a few small architectural configuration tricks are all that's needed to completely prevent this kind of attack, or, at the very least, minimize it significantly.

            Are _you_ going to scan, not only the entire range of source ports, but all those ports times the entire RFC1918 address space? Good luck killing my systems, buddy, 'cause that's what you're in for.

            Oh, even with the large window sizes, once you've found all the above, you've still got to find my sequence numbers.
            [ Parent ]
          • Re:OpenBSD is safe? by g-san (Score:2) Tuesday April 20 2004, @06:14PM
          • Re:OpenBSD is safe? by bmedwar (Score:1) Wednesday April 21 2004, @12:34PM
          • Re:OpenBSD is safe? by JVert (Score:1) Tuesday April 20 2004, @09:19PM
            • 1 reply beneath your current threshold.
          • Re:OpenBSD is safe? by Jeremiah Cornelius (Score:2) Tuesday April 20 2004, @11:44PM
          • 1 reply beneath your current threshold.
        • RFC 2385 (Score:5, Informative)

          by apankrat (314147) on Tuesday April 20 2004, @04:39PM (#8922421)
          (http://swapped.cc/)
          There is RFC 2385 [ietf.org] titled Protection of BGP Sessions via the TCP MD5 Signature Option. In the first paragraph of its Introduction section it says -

          The primary motivation for this option is to allow BGP to protect itself against the introduction of spoofed TCP segments into the connection stream. Of particular concern are TCP resets.

          The date of publishing - August 1998, which makes it about 6 years old.

          However the proposed option was primarily meant as a quick BGP fixup, which should've got depricated as soon as IPsec got RFC'ed and deployed. It did went standard few months later, but IPsec implementations enjoyed full share of cross-vendor compatibility problems.

          With time Authenticated Header (AH) IPsec protocol didn't see much use or acceptance and IPsec slowly evolved (and keeps evolving) into confidentiality rather than authentication layer.

          Besides it's an IP security after all, while the RST spoofing is a TCP problem. And one can quite rightfully percieve authenticating TCP with IPsec as an overkill.

          Anyhow, long story short - it's a known and rather old problem with handful of existing and equally unattractive solutions. Perhaps this time around it will be addressed better due to the amount of the publicity it's aimed to get.

          [ Parent ]
        • Re:OpenBSD is safe? by illumin8 (Score:3) Tuesday April 20 2004, @05:35PM
      • 1 reply beneath your current threshold.
    • Re:OpenBSD is safe? (Score:5, Funny)

      by GoofyBoy (44399) on Tuesday April 20 2004, @02:23PM (#8920527)
      (Last Journal: Monday October 11 2004, @09:43PM)
      >For what
      they discuss, OpenBSD handles this extremely well. We'll explain more in a week or so.

      Is the margin of the page too small to explain the wonderful reason why it handles this so well?
      [ Parent ]
      • Re:OpenBSD is safe? (Score:5, Insightful)

        by AndyBusch (160585) on Tuesday April 20 2004, @02:27PM (#8920588)
        Good and funny :) but I think what they mean is that more details would give more info for exploits, so their sitting mum til things can get solidified a little more.
        [ Parent ]
      • Re:OpenBSD is safe? by Anonymous Coward (Score:1) Tuesday April 20 2004, @02:37PM
        • 1 reply beneath your current threshold.
      • Re:OpenBSD is safe? (Score:5, Informative)

        by lcde (575627) on Tuesday April 20 2004, @04:36PM (#8922388)
        (http://www.schoolinsummertime.com/)
        Theo Wrote:
        Let me be more clear.

        This entire thing is being "sold" as `cross-vendor problem'. Sure.
        Some vendors have a few small issues to solve in this area. Minor
        issues. For us, those issues are 1/50000 smaller than they are for
        other vendors. Post-3.5, we have fixes which make the problem even
        smaller.

        But one vendor -- Cisco -- has an *UTTERLY GIGANTIC HUGE* issue in
        this regard, and as you can see, they have not yet made an
        announcement see..

        You are being told "lots of people have a problem". By not seperating
        out the various problems combined in their notice, or the impact of
        those problems, you are not being told the whole truth.


        More Theo:
        OpenBSD (and I am sure other systems too) have for some time contained
        partial countermeasures against these things.

        OpenBSD has one other thing. The target port numbers have been random
        for quite some time. Instead of the Unix/Windows way of
        1024,1025,1026,... adding 1 to the port number each time a new local
        socket is established... we have been doing random for quite some
        time. That means a random selection between 1024 and 49151. This
        makes both these attacks 48,000 times harder; unless you already know
        the remote port number in question, you must now send 48,000 more
        packets to effect a change.

        At least one other free operating system incorporated our random port
        selection code today..

        We've made a few post-3.5 changes of our own, since we are
        uncomfortable with the ACK-storm potention of the solutions being
        proposed by the UK and Cisco people; in-the window SYN or RST's cause
        ACK replies which are rate limited.

        At least one other free operating system today incorporated the same
        changes......


        [ Parent ]
      • Re:OpenBSD is safe? by Kismet (Score:1) Tuesday April 20 2004, @04:44PM
      • Re:OpenBSD is safe? by JUSTONEMORELATTE (Score:1) Tuesday April 20 2004, @08:40PM
    • Re:OpenBSD is safe? (Score:5, Insightful)

      by thedillybar (677116) on Tuesday April 20 2004, @02:24PM (#8920535)
      It sounds (again) like proactive security auditting saves the day!

      It doesn't save anything. When someone exploits this and takes out 90% of the Internet's routers, you're screwed no matter what.

      It definitely makes a good argument for both OpenBSD and proactive security auditting. But it doesn't save the day.

      [ Parent ]
    • Re:OpenBSD is safe? by October_30th (Score:1) Tuesday April 20 2004, @02:30PM
      • 1 reply beneath your current threshold.
    • OUCH! by Anonymous Coward (Score:2) Tuesday April 20 2004, @02:33PM
    • Windows also safe (Score:5, Funny)

      by MrHanky (141717) on Tuesday April 20 2004, @02:36PM (#8920729)
      (http://www.google.com/ | Last Journal: Tuesday December 12 2006, @06:04PM)
      In a press release from Microsoft, Bill Gates states:
      All Windows versions from 3.11 to 2003 are quite safe from this exploit, since Windows also supports the famously reliable NetBEUI protocol. In a proactive measure, Windows update will remove support for TCP/IP and ensure that all updated computers have support for NetBEUI only. NetBEUI will once again rule the earth! Take that, Steve! No, not you, Ballmer, the other Steve. The hippe. Woahahahahahaha!

      In a quickly following press release, Bill Gates adds:
      Woahahahahahaha! Hahahaha! Hahaha! Thank you.
      [ Parent ]
      • Re:Windows also safe (Score:4, Funny)

        by MrHanky (141717) on Tuesday April 20 2004, @02:52PM (#8920917)
        (http://www.google.com/ | Last Journal: Tuesday December 12 2006, @06:04PM)
        Ah, come on! I was joking, not trolling for flames. And besides, how the hell was that going to attract flames? If that really was flamebait, it should be modded -1, ineffective.

        (Was it the hippie part? Yeah, sure calling Steve Jobs a hippie is flamebait, but this was also clearly a joke. Some moderators are just in a dire need of a blow job.)
        [ Parent ]
      • Re:Windows also safe (Score:5, Funny)

        by markan18 (718118) <sm@bigserver.hopto.org> on Tuesday April 20 2004, @03:23PM (#8921406)
        Security Update for Windows XP (KBTCPDRM-666)

        This update addresses the vulnerability addressed in Microsoft Security Bulletin 666. Find out about more recent critical updates in the Overview section.

        File Name:

        WindowsXP-MSTCPDRM-x86-ENU.exe

        Download Size:

        1261 GB

        Date Published:

        4/20/2004

        Version:

        666

        Overview

        This patch fixes criticals security vulnerabilities present in Windows TCP stack.
        This patch also add the new DRM TCP extension.
        When is patch is applied, your computer will connect to drm.microsoft.com prior establishing any other connection to make sure the requested end point is an authorized Microsoft partner. All rogue packets are now rejected and reported by the Windows TCP-DRM firewall (TM).
        This patch also upload the registry key HKEY_LOCAL_MACHINE and all subkeys and values to drm.microsoft.com so we can make sure all software is used according to their end user licence agreements.

        System Requirements

        Supported Operating Systems: Windows XP

        Windows XP Professional
        Windows XP Home Edition
        [ Parent ]
        • 1 reply beneath your current threshold.
      • Re:Windows also safe by Mr. Neutron (Score:3) Tuesday April 20 2004, @03:32PM
      • Re:Windows also safe by torpor (Score:2) Tuesday April 20 2004, @03:58PM
      • 1 reply beneath your current threshold.
    • by Anonymous Coward on Tuesday April 20 2004, @02:39PM (#8920758)
      From: Theo de Raadt <deraadt@cvs.openbsd.org>
      [snip]

      Let me be more clear.

      This entire thing is being "sold" as `cross-vendor problem'. Sure.
      Some vendors have a few small issues to solve in this area. Minor
      issues. For us, those issues are 1/50000 smaller than they are for
      other vendors. Post-3.5, we have fixes which make the problem even
      smaller.

      But one vendor -- Cisco -- has an *UTTERLY GIGANTIC HUGE* issue in
      this regard, and as you can see, they have not yet made an
      announcement see..

      You are being told "lots of people have a problem". By not seperating
      out the various problems combined in their notice, or the impact of
      those problems, you are not being told the whole truth.
      [ Parent ]
    • Re:OpenBSD is safe? (Score:5, Funny)

      by pyros (61399) on Tuesday April 20 2004, @02:45PM (#8920827)
      (Last Journal: Thursday May 13 2004, @07:26PM)
      I guess they were smart enough to implement the new Evil Bit added to TCP last April. Those OpenBSD folks sure are forward thinking.
      [ Parent ]
    • Re:OpenBSD is safe? by binaryzone (Score:2) Tuesday April 20 2004, @02:46PM
    • Re:OpenBSD is safe? by ForsakenRegex (Score:2) Tuesday April 20 2004, @03:11PM
      • Re:OpenBSD SMP by the morgawr (Score:3) Tuesday April 20 2004, @03:20PM
        • Re:OpenBSD SMP (Score:5, Informative)

          Combine that with the fact that almost all of the programs used on a modern UNIX-like system arn't CPU bound and it's easy to see why SMP took a back seat to more "interesting" issues.

          Wrong. Very wrong. Are you anaware of this field called "banking"? What about "financial trading"? These firms have huge portfolios and run and re-run various models on them. At night, the systems have to run various "end-of-day" scripts and reports, which take CPU-hours to complete. Most of this things run on Unix...

          There is also on-the-fly image manipulation, and the scene-rendering done by fleets of Unix machines. The more CPUs each such Unix machine can fit, the better.

          Then come databases -- depending on the queries (with joins and orderings), DB-servers can be CPU bound and appreciate multiple processors when available.

          What about PVM [ornl.gov]? What was it -- and similar packages both free and commercial -- written for? What about this proverbial "beowulf clusters"? Of course, it is much better to have several CPUs inside the box, rather than in separate machines.

          However there is a developer being paid to work full time writing SMP support for OpenBSD. He expects to have a working implementation by 3.6 or 3.7.

          Until which time, the OpenBSD zealots will continue to deny the issue exists or is of any importance. I see...

          [ Parent ]
        • Re:OpenBSD SMP by ForsakenRegex (Score:2) Tuesday April 20 2004, @04:32PM
          • Re:OpenBSD SMP by the morgawr (Score:1) Tuesday April 20 2004, @04:48PM
          • Re:OpenBSD SMP by the morgawr (Score:1) Tuesday April 20 2004, @05:31PM
          • Re:OpenBSD SMP by Calyth (Score:1) Tuesday April 20 2004, @09:50PM
          • 1 reply beneath your current threshold.
      • 1 reply beneath your current threshold.
    • Re:OpenBSD is safe? by endersdouble (Score:1) Tuesday April 20 2004, @03:17PM
    • Parasitic Computing by null etc. (Score:1) Tuesday April 20 2004, @03:33PM
    • OpenBSD is safe? by scum-e-bag (Score:3) Tuesday April 20 2004, @02:50PM
    • Re:Yes yes by Anonymous Coward (Score:2) Tuesday April 20 2004, @03:08PM
    • 6 replies beneath your current threshold.
  • Best security advice... (Score:4, Funny)

    by Anonymous Coward on Tuesday April 20 2004, @02:17PM (#8920409)
    Just unplug your PC from the internet and wash your hands of it.. the whole thing feels holier than swiss cheese :(
  • by Novanix (656269) * on Tuesday April 20 2004, @02:17PM (#8920412)
    (http://novanix.com/)
    This kind man responsible for finding this vulnerability is going to present this exploit at the security conference in Vancouver this Thursday. He then predicts "hackers will understand how to begin launching attacks 'within five minutes of walking out of that meeting.'" The article talks about how the government has been "fortifying" its networks against this, does that means they quickly rewrote the tcp protocol? I would love to know.
    • Maybe the speed at which TCP was written is the problem. If they re-wrote it, I hope they did a slow re-write, because we will need the patches.

      Really, I think the problem is that the flaw affected /some routers/ whose implementation of the TCP stack was flawed. That is what I gathered, anyway. If this is so, they just need to find non-flawed software.
      [ Parent ]
      • Re:He plans to show the exploit this Thursday! by John Courtland (Score:2) Tuesday April 20 2004, @02:28PM
      • by CyberBill (526285) on Tuesday April 20 2004, @02:33PM (#8920669)
        No, its not a problem that is software-specific. They are utilizing a 'flaw' in the design of TCP by spoofing the sender's IP address and port, *AND* guessing the recvwindow number!!

        The reason it only affects long-term connections is because it takes awhile to probe for the magic number to reset the connection, and ALL this does is reset the connection, nothing more.

        This whole thing is retarded, if you know enough about TCP this exploit was already on your mind and forgotten because its stupid. :P

        -Bill
        [ Parent ]
        • Re:He plans to show the exploit this Thursday! by Anonymous Coward (Score:1) Tuesday April 20 2004, @02:43PM
        • Neither forgotten nor stupid (Score:5, Informative)

          by shostiru (708862) on Tuesday April 20 2004, @03:03PM (#8921107)
          The relevant parts of this vulnerability are 1) that RST attacks are much, much easier than formerly thought, making them possible for your average broadband sub, and 2) that BGP in particular is highly vulnerable, given the consequences of a terminated BGP session.

          A recently published I-D (here [ietf.org]) claims 200 seconds is sufficient time for a broadband sub to successfully attack a TCP session, provided their ISP doesn't use egress filtering (and way too few do so).

          This is rather serious. Whether you personally aren't susceptible is irrelevant if your upstreams are.

          [ Parent ]
          • Re:Neither forgotten nor stupid (Score:5, Informative)

            by Floody (153869) on Tuesday April 20 2004, @03:15PM (#8921292)
            (http://www.inflicted.net)
            Of course, in a sanely designed backbone, ingress filtering should be in place to filter source ips from BGP peers that aren't specifically on the interface matching the peer (yes, there's multi-hop BGP, but ignoring that for the moment...).

            I do realize this likely isn't the case on many networks, but perhaps this will push such sanity (and very simple) filtering to become more widespread.

            [ Parent ]
          • Re:Neither forgotten nor stupid (Score:5, Insightful)

            by Tackhead (54550) on Tuesday April 20 2004, @03:21PM (#8921391)
            > A recently published I-D (here) claims 200 seconds is sufficient time for a broadband sub to successfully attack a TCP session, provided their ISP doesn't use egress filtering (and way too few do so).

            Maybe it's about fucking time ISPs started using egress filtering. At the very least, there'd be an order of magnitude less crap (smurfage, etc) if ISPs dropped spoofed source IP packets before they got to the backbone.

            OK, so the ability of any skript kiddie to spoof and insert a BGP update is a pretty fucking huge mess. But "pretty fucking huge" it may be the only kind of mess that motivates the clueless fucktards pretending to be "ISPs" these days.

            [ Parent ]
      • From what I gathered in the two links and also my knowledge of TCP/IP, it would not necessarily require a flawed implementation of the stack in order to be vulnerable to attacks of these sort. In fact, it is the routers and/or software which doesn't implement the stack according to spec which are less likely to be affected.

        In the mean time, there are a few workarounds which can be put in place, such as IPSec, and options which can be changed to reduce the liklihood of an attack, such as the window size. The smaller it is, the harder it is to guess a sequence number in the range quickly.
        [ Parent ]
        • Re:He plans to show the exploit this Thursday! by Orne (Score:2) Tuesday April 20 2004, @05:12PM
        • Not flawed, just unimaginative. (Score:4, Insightful)

          by billstewart (78916) on Tuesday April 20 2004, @08:05PM (#8924227)
          (Last Journal: Wednesday March 02 2005, @11:08PM)
          The problem isn't TCP stacks that are flawed because they don't implement TCP properly. It's TCP stacks that failed to imagine some of the creative ways to attack them. Sequence number guessing has been around for a while (see papers by Bellovin and others), but apparently the guy has figured a somewhat more efficient way to guess them on some popular platforms, apparently including Cisco routers.

          Routers don't usually do a lot of TCP themselves, except SSH or telnet access for management, but the one big exception is the BGP protocol that routers use to connect to each other, primarily at the interfaces between carriers. The BGP sessions stay up for a long time, and killing them tells the router that it's no longer talking to its neighbor so it should go find a different route to get to that network, which is really really annoying. On the other hand, BGP has options to do more checking on BGP messages before accepting them, and carriers that do spoof-proofing to prevent their customers from forgin