Slashdot Mirror


Flaw Found in VPN Crypto Security

peeon writes "CNET reports the British National Infrastructure Security Coordination Centre has discovered a flaw in IPSEC protocol. From the article: 'The flaw, which the NISCC rates as "high" risk, makes it possible for an attacker to intercept IP packets traveling between two IPsec devices. They could then modify the encapsulation security payload--a subprotocol that encrypts the data being transported.'"

27 of 106 comments (clear)

  1. Hype Warning by danielrm26 · · Score: 5, Informative

    It's important to realize that you're only vulnerable to this issue if you're *not* doing integrity checking via IPSEC. Most major VPN infrastructures I run across use ESP with both confidentiality *and* integrity functionality enabled (some use AH as well). If that's the case for network x, then network x has nothing to fear from this.

    Always read vulnerability details; people love to sensationalize stuff like this to the extreme.

    --
    dmiessler.com -- grep understanding knowledge
    1. Re:Hype Warning by whoever57 · · Score: 3, Interesting

      Does this mean that it DOES apply to IPSEC VPNs that are configured with NAT Traversal?

      --
      The real "Libtards" are the Libertarians!
    2. Re:Hype Warning by God!+Awful+2 · · Score: 2, Informative

      Does this mean that it DOES apply to IPSEC VPNs that are configured with NAT Traversal?

      Sure, if you disable authentication. But there's nothing specifically related to NAT traversal.

      -a

    3. Re:Hype Warning by m0rningstar · · Score: 4, Informative

      No ... all NAT traversal does is to wrap the ESP packet in a UDP packet (to the best of my understanding, at any rate).

      So if you have the integrity trailer turned on -- which, as the original poster said, is good practice -- it should make no difference if it's a raw ESP packet or an ESP packet in the payload of a UDP packet.

      There also look to be some fairly large technical difficulties with implementing the attack, not the least of which is that you have to bit flip arbitrarily to recover the data and depending on your SA lifetime that might not be terribly productive.

      Yes, it's a flaw in IPSec and that's bad, but I think it's technically a very difficult attack AND relatively easy to work around.

  2. Whew... by grasshoppa · · Score: 4, Informative

    http://openvpn.net/

    I was worried there for a second.

    Ok, no I wasn't.

    --
    Mod me down with all of your hatred and your journey towards the dark side will be complete!
    1. Re:Whew... by Linker3000 · · Score: 2, Informative

      Good call - OpenVPN is a good package.

      --
      AT&ROFLMAO
    2. Re:Whew... by Tack · · Score: 2, Insightful
      I'm going to chime in with a definite "me too" here. I've been using OpenVPN for over a year, and this is absolutely solid software. It easily falls into the Just Works category. I have it started on boot, and I simply forget that it's there. If there are network issues, it recovers gracefully.

      I can't quite speak to its security, but there's nothing I've seen that makes me the least bit concerned. Although Peter Gutmann didn't do a real audit of openvpn, he did have this to say about it: "... but a quick look through it indicates that the author knows what he's doing." After you read a few remarks made by cryptographers, something like "this person is not a moron" is exceptionally high praise.

      And Gutmann did leave us with this memorable quote: "Whenever someone thinks that they can replace SSL/SSH with something much better that they designed this morning over coffee, their computer speakers should generate some sort of penis-shaped sound wave and plunge it repeatedly into their skulls until they achieve enlightenment."

      If you need a vpn solution that Just Works, check out OpenVPN.

      Jason.

    3. Re:Whew... by cduffy · · Score: 2, Insightful

      Spin it however you like -- but read this.

      OpenVPN's security model is quite strong -- as documented in the FAQ, it borrows heavily from preexisting (time-tested, heavily reviewed) protocols (not just SSL but ESP as well), and supports multiple layers of security (ie. "tls-auth", a pre-shared key authenticating all traffic; support for running unprivileged and within a chroot jail to prevent OS-level security breaches; etc). Further, the (limited region of) code which handles pre-authentication network traffic is heavily audited.

      There has been analysis resulting in security vulnerabilities found; these have exclusively been related to misconfiguration, and even in those cases the daemon now spits out a warning when it detects such misuse. Certainly, OpenVPN hasn't garnered the level of direct review (as opposed to inderect review of components it borrows) that IPsec has -- but I'm confident in its security. Certainly, the other homegrown userspace VPNs all have serious issues -- but notably, those issues have by and large been pointed out, whereas OpenVPN's security model has had no serious flaws documented despite significant popularity.

      OpenVPN has a number of other advantages as well -- plays nice with NAT, tunnels over almost any network, no interop issues (since there's just one implementation that runs anywhere), etc.

  3. Nonsense by Cally · · Score: 5, Informative

    This is a misleading writeup. The problem only shows up in certain configurations and is easily worked around. From TFA: Solution - - -------- Any of the following methods can be used to rectify this issue: 1. Configure ESP to use both confidentiality and integrity protection. This is the recommended solution. 2. Use the AH protocol alongside ESP to provide integrity protection. However, this must be done carefully: for example, the configuration where AH in transport mode is applied end-to-end and tunnelled inside ESP is still vulnerable. 3. Remove the error reporting by restricting the generation of ICMP messages or by filtering these messages at a firewall or security gateway.

    --
    "None are more hopelessly enslaved than those who falsely believe they are free." -- Goethe
  4. Re:Old news by norfolkboy · · Score: 5, Insightful

    "old news for nerds"

    Slashdot is only as up-to-date as you make it. AFAIK the editorial team don't go looking for articles, they wait for YOU the reader to submit them.

    If you want current news, you should participate in providing it.

  5. Don't go replacing anything just yet. by PacketScan · · Score: 2, Informative

    Ipsec it self isn't vulnerable. It is the session setup that can be misconfigured causing the Exploitable problem.

  6. VPN by OverflowingBitBucket · · Score: 4, Funny

    Well, I guess it stands for Virtual Public Network now. ;)

  7. Re:OpenBSD is clear by bluGill · · Score: 2, Informative

    No, the one hole was in openssh. There have been many (well at least one) holes in their apache, but apache is not enabled by default so it is not counted. Openssh is enabled by default, so it counts.

  8. Misleading hype by Anonymous Coward · · Score: 4, Informative
    This only applies to certain configurations using CBC encryption for confidential guarantees without proper integrity protection. These configurations are rare these days and are not even allowed by major vendors.

    More info here.

  9. Wrong Answer - Please ignore parent by MerlynEmrys67 · · Score: 4, Informative
    Uh - NO - (why is this insiteful)

    From the article it states clearly that it is a mode of ESP in tunnel mode that causes the problem NOT IKE (Internet Key Exchange) that is used for session setup.

    Now the solution might be in IKE as in don't let IKE configure ESP without authentication - but this boys and girls is why you NEVER do encryption without authentication

    --
    I have mod points and I am not afraid to use them
  10. Solution by SenFo · · Score: 4, Informative

    Taken from the NISC website.

    Solution
    - - --------
    Any of the following methods can be used to rectify this issue:
    1. Configure ESP to use both confidentiality and integrity protection. This is the recommended solution.

    2. Use the AH protocol alongside ESP to provide integrity protection. However, this must be done carefully: for example, the configuration where AH in transport mode is applied end-to-end and tunnelled inside ESP is still vulnerable.

    3. Remove the error reporting by restricting the generation of ICMP messages or by filtering these messages at a firewall or security gateway.

  11. Sweet Friday the 13th! by Mad_Rain · · Score: 3, Funny

    So let's see, first there was the Intel Hyperthreading Vulnerability, then there was a patch to an Apple security flaw and now this....

    So who came out a winner betting on this trifecta? ;)

    --
    "What do you think?" "I think 'What, do you think?!'"
  12. Only relevant to the standard by iabervon · · Score: 3, Insightful

    This only affects a relatively odd combination of features, so it's probably not a big deal for actual users. On the other hand, it is a flaw in the standard to claim that you can get confidentiality without integrity, when, in fact, that means that your data can be replaced with a request to decrypt your earlier packets, and you'll do so. Of course, integrity would only be disabled in a specialized application (where you expect to be able to deal with mangled data), and IPSec is generally deployed in cases where a variety of applications will use the channel.

    It's extremely difficult to design a cryptosystem with optional features, because the security of various techniques tends to depend on properties provided by other techniques, and it's difficult to determine, especially in a committee, whether these properties are provided for the proper function of the system or because the end user is likely to want them.

  13. Slashdot provides critical security advisory! by ramam · · Score: 5, Funny

    If you hand your credit card to the first person who walks past you when you're done eating, it may not be your waiter!

  14. Re:Yea. by Tack · · Score: 4, Funny
    You would have been safer if you used Double ROT-13 encryption instead.

    That's fine if you don't care about the security of your data. Current cryptanalysis indicates that at a minimum you want 16 rounds of ROT-13. And since I'm rather paranoid, as a rule I tend to double the recommendations of cryptographic primitives, so I use 32 rounds of ROT-13. With current CPUs as fast as they are, there's very little reason to use less than 16 rounds. And 2 rounds is just insanity.

    I dare you to crack my data.

    Jason.

  15. More Info... by Jeffb05 · · Score: 2, Informative

    They must be using ICMP type 12 (from RFC792) which shows the original header + first 64 bits (8 bytes) of data from each packet. Interesting leak, but very small amount of data. http://rfc.net/rfc792.html

  16. Old News.. This is a non-issue by tji · · Score: 3, Informative

    Basically, this tells us "don't switch off authentication in IPSec" (if your IPSec allows this, many don't allow you to run without authentication).

    But, the creators of IPSec told us this a LONG time ago.. Security wizard Steve Bellovin analyzed this as part of his IPSec reviews and said that encryption without authentication is a very bad idea. See the FreeS/WAN FAQ pages for more info ( http://www.manualy.sk/freeswan-1.3/doc/overview.ht ml#encnoauth )

    Mr. Bellovin presented a paper on this in the Usenet Security Symposium of July 1996.

  17. Moreover by apankrat · · Score: 2, Interesting

    Not having integrity protection enabled automatically opens ESP to the replay attacks, which are easier to mount and far more practical than the one described in TFA.

    --
    3.243F6A8885A308D313
  18. No sane IPsec implementation id vulnerable by leto · · Score: 2, Informative

    Response from the Openswan team: Not vulnerable

  19. This is a known issue by lyrix · · Score: 3, Informative

    This is a known issue. Some colleagues and I published on a very similar attack where unauthenticated IPSec packets can be redirected, bounced, and possibly decrypted by outsiders back in 2000. See "Initialization vector attacks on the IPsec protocol suite" in the proceedings of WET ICE 2000. Basically you can mess with the first encrypted chunk of the plaintext, i.e. the TCP and IP headers, by bitflipping the initialization vector (IV) in the encrypted packet stream. An IV is used in several block encryption schemes, notably cipher block chaining.

    This even works with TCP even though the plaintext header is checksummed. We showed that it was easy to get an identical checksum by modifying an unused part of the TCP header along with a more important part, like destination port.

    Using authentication defeats this attack. Just don't forget to authenticate and everything is peachy.

  20. Re:OpenBSD is clear by shis-ka-bob · · Score: 2, Insightful
    1) Look at the security report from the OpenBSD folks at http://openbsd.org/errata31.html#sshd, the OpenBSD hole was indeed in OpenSSH.
    2) Look a the openssh.org homepage. Notice the quote 'OpenSSH is primarily developed by the OpenBSD Project, and its first inclusion into an operating system was in OpenBSD 2.6. '

    I'm siding with bluGill on this point, the AC is the dumbass on this trhread.

    --
    Think global, act loco
  21. This is the Paris Hilton of Security Advisories by Fefe · · Score: 2, Informative

    Big noise, nothing behind it.

    To call this issue well-known would be an understatement. It is even mentioned in the RFC2406 in the Introduction. RFC2406 happens to be to RFC that defines ESP mode in IPsec.

    It must be a slow news day in Great Britain.