Slashdot Mirror


SSL Holes Found In Critical Non-Browser Software

Gunkerty Jeb writes "The death knell for SSL is getting louder. Researchers at the University of Texas at Austin and Stanford University have discovered that poorly designed APIs used in SSL implementations are to blame for vulnerabilities in many critical non-browser software packages. Serious security vulnerabilities were found in programs such as Amazon's EC2 Java library, Amazon's and PayPal's merchant SDKs, Trillian and AIM instant messaging software, popular integrated shopping cart software packages, Chase mobile banking software, and several Android applications and libraries. SSL connections from these programs and many others are vulnerable to a man in the middle attack."

24 of 84 comments (clear)

  1. This again? by Anonymous Coward · · Score: 5, Insightful

    News Flash: People bypass inconvenient security features. Security reduced as a result.

    How does this at all lead to a "death knell" for SSL?

  2. Death knell? Really? by JDG1980 · · Score: 4, Insightful

    The death knell for SSL is getting louder

    What does this mean? Just that vendors should be using the newer versions of SSL that were rebranded TLS? Or is there another, competing technology that is recommended instead?

    1. Re:Death knell? Really? by Anonymous Coward · · Score: 5, Informative

      It means that both Gunkerty Jeb and Timothy didn't read TFA and are both fucking stupid.

      Summary: libraries allow you to selectively ignore part or all of the certificate chain verification, including OpenSSL, which is exactly what your fucking browser asks you to do when you visit a site with a self-signed or expired cert. TFA argues that this is the wrong behavior. TFA also doesn't understand that sometimes you don't care that much about MITM, just that the traffic is encrypted to make the current session opaque.

      TFA also doesn't understand what the layers of security are around Amazon's EC2 toolkit, either.

    2. Re:Death knell? Really? by Anonymous Coward · · Score: 5, Informative

      It means that this "post" is really clickbait. And now we know why no one RTFA.

    3. Re:Death knell? Really? by wmbetts · · Score: 4, Informative

      Yes, it is and it's bs that libcurl got caught in the middle. By default libcurl is secure.

      --
      "Ubuntu" -- an African word, meaning "Slackware is too hard for me". - stolen from Dan C alt.os.linux.slackware
    4. Re:Death knell? Really? by bill_mcgonigle · · Score: 2


      It means that this "post" is really clickbait. And now we know why no one RTFA.

      Yes - please, nobody make any more topical comments about the "death knell" phrase or you're just going to encourage this kind of submission whoring and editors who play along. They'd love to see a long thread debating the merits of whether or not TLS is about to go extinct, and there will be trolls to fuel such an absurd thread if you allow it.

      They'll have to make do with a small number of page views on the meta bitching about the poor editing.

      --
      My God, it's Full of Source!
      OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
    5. Re:Death knell? Really? by Anonymous Coward · · Score: 3, Insightful

      TFA also doesn't understand that sometimes you don't care that much about MITM, just that the traffic is encrypted to make the current session opaque.

      Your session is not going to be very opaque if there's a man in the middle listening in.

    6. Re:Death knell? Really? by dkf · · Score: 3, Insightful

      TFA also doesn't understand that sometimes you don't care that much about MITM, just that the traffic is encrypted to make the current session opaque.

      That allows you to have a wonderfully secure conversation with whoever is snooping. Great step forward there!

      It's important that clients verify the identity of the servers to which they connect, but they can do so in many ways. Public HTTPS does it in a particular pattern, but a self-signed certificate also works (provided you've distributed the server's public key to clients in a trusted way first). The problem with self-signed on the public HTTPS web is that there's too many sites for it to be at all practical for you to acquire all their self-signed public certificates before connecting to any of them; that advantage (of the CA system) ceases to be very relevant on a closed system such as an intranet, though larger intranets can go for things like a private CA.

      Expired certificates or non-matching host certificates are a demonstration of poor deployment.

      --
      "Little does he know, but there is no 'I' in 'Idiot'!"
    7. Re:Death knell? Really? by Billly+Gates · · Score: 2

      Unfortunately they can't leave TLS because of IE 6 and maybe IE 7(?) support. These apps use HTML from IE for functionality and need to support these older browsers for corps and people who refuse to upgrade to a modern browser.

      Another reason to also get rid of XP as you can't upgrade someone's IE from your own setup.exe program.

      Arstechnica.com had an article (older as I can't find it to link) which showed TLS to be ineffective by 2016 as computers became faster and through collisions will be able to hack the keys.

    8. Re:Death knell? Really? by DragonWriter · · Score: 2

      TFA also doesn't understand that sometimes you don't care that much about MITM, just that the traffic is encrypted to make the current session opaque.

      That's because that's a nonsense idea. If the scheme you use is vulnerable to MITM, the session using that scheme are not opaque to unintended eavesdroppers. That's what "MITM" means.

    9. Re:Death knell? Really? by Anonymous Coward · · Score: 2, Informative

      Your parent stated it badly. It's not that you aren't worried about Monkey in the Middle. It's that you aren't worried about third party identity verification to avoid MITM. If you self-sign your own certificate, then you know that it's valid. You aren't relying on a third party signer (e.g. VeriSign) to validate it. You are validating it.

      The thing is that for this to work, you need to verify the certificate. If you don't verify the certificate, then you can end up with MITM attacks. There is a mechanism to automatically verify the certificate with a third party signer. If you bypass that mechanism, you are responsible for doing the necessary verification. Turning off that verification in libcurl is a bad idea--it allows *everyone* to bypass verification. It should only be used for testing. Turning off that verification on a per site basis in Firefox is dangerous but manageable.

      The correct way to do this with libcurl is to manually add that particular certificate to the approved certificates list. That marks that you verified the certificate without opening additional certificates. It's possible that there should be additional tools to make this process easier in both Firefox and libcurl. That would encourage people to do the right thing rather than the expedient thing.

  3. Protocol by Synerg1y · · Score: 4, Insightful

    How is the wrong implementation of a protocol in a framework library a fault of the protocol?

    Either devs need to be aware that there's extra steps in validating using an SSL library in their framework of choice, or the framework needs to be patched appropriately, but based on the concepts the article's provided, sounds like bad implementation aka crap code, and not enough QC. Some OOP would help make the implementation easier though...

  4. This is not an SSL problem by gweihir · · Score: 4, Insightful

    This is a problem of bad APIs and people not competent to select libraries with better ones. The same would happen with any other encryption protocol. Implementing and using cryptography is hard, in particular because testing will usually not show anything is wrong and testing is still the only thing most software "developers" have in their bag of tools to ensure correctness. As long as people without a clue decide they can implement cryptographic libraries or use them, these things will continue to happen.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    1. Re:This is not an SSL problem by Dast · · Score: 4, Insightful

      This is a problem of bad APIs and people not competent to select libraries with better ones.

      While that might sound true, I think the problem is deeper than that. The issue in a lot of cases is developers having to deal with non-ideal SSL/TLS setups that they have no control over.

      It usually goes like this:

      Dev monkey gets told by PHB, we need to make our communications secure, so implement SSL. Dev monkey adds SSL support to the app. Code seems to work. Testing (or even worse, someone in Production) comes back and says: dev monkey's SSL code doesn't work with our Customer XYZ's server. Dev monkey tests things himself and finds that Customer XYZ is using a self signed cert or an expired cert. Dev monkey tells PHB that Customer XYZ needs to fix their setup. PHB tells dev monkey that the setup cannot be changed because of ABC and that dev monkey needs to "code around the issue". Dev monkey updates app to not choke on bad certs. Code gets released, and Customer XYZ's remote worker gets p0wned by a man in the middle attack. Customer XYZ blames PHB, PHB blames dev monkey. Dev monkey sighs and gets another mountain dew.

      --

      This sig is false.

    2. Re:This is not an SSL problem by The+Moof · · Score: 2

      Dev monkey updates app to not choke on bad certs [...] PHB blames dev monkey

      The PHB got the blame exactly right. The Dev Monkey proved he didn't understand SSL as soon as he did a blanket "trust everything." Dev Monkey screwed the pooch.

    3. Re:This is not an SSL problem by Synerg1y · · Score: 2

      To be honest...

      If I was consulting for a company and I clearly outlined the risk of allowing self-signing certs to them and they said we'll take it, I'd make sure I had something in writing... like an email & I'd do it for them anyways, if they get MITM'd later, I'd refer to them to the email. You can't always stop people from taking short cuts, but making them aware of the risks is more than most people probably do.

  5. Re:Proprietary software contains vulnerabilities by Anonymous Coward · · Score: 2, Informative

    Shocking indeed. It's pretty much this story but without the Android reference

    http://yro.slashdot.org/story/12/10/20/0545252/poor-ssl-implementations-leave-many-android-apps-vulnerable

    Who'd have thought that poorly coded code is poorly coded?

  6. Re:Man in the middle? by Bill,+Shooter+of+Bul · · Score: 3, Insightful

    As long as you are using a legit SSL cert ( avalible for less than $10 anually) with decent cipher strength ( again, avalible for less than $10 anually), man in the middle should be impossible with TLS/SSL and the proper use of it by the client ( don't connect and send sensitive data, if the ssl cert isn't valid or the signer isn't trusted).

    --
    Well.. maybe. Or Maybe not. But Definitely not sort of.
  7. libcurl is not insecure by wmbetts · · Score: 4, Interesting

    The compliant about libcurl is baseless. It's said VERY CLEAR in the documentation how to use the feature. If stupid devs can't figure it out that's hardly the fault of a library developer. I've never had an issue with it and I've used it in C, C++, and PHP.

    To repeat what I said on the mailing list. If I break my thumb with a hammer do blame the hammer or do I blame myself?

    As Yehezkel Horowitz pointed out on the mailing list.

    This is the quote from the FAQ
    >Q: How do I use cURL securely?
    >A: CURLOPT_SSL_VERIFYPEER must be set to TRUE, CURLOPT_SSL_VERIFYHOST must be left to its default value or set to 2. Anything >else, such as setting CURLOPT_SSL_VERIFYHOST to TRUE, will result in the SSL connection being insecure against a man-in-the-middle attacker.

    The real answer should be - cURL defaults are secure - no need for any code to use it securely.
    ==================
    In general I think the very short answer for this publication should be RTFM.

    The little bit longer answer would be -
    1. cURL is a C code library - you can't set a value to TRUE since this is not in the language syntax.
    So you has somewhere in your includes something like "#define TRUE 1" - you must be aware to this issue - this is an important part of the relations between computers/compilers/programmers.

    2. Before setting any option to cURL - you should read the very clear documentation about this option.
    ==================
    As to what we can do to make cURL even better (in order to protect unprofessional users that don't know what they are doing), We could make '1' to act as '2' (verify peer identity), and add a special magic value (i.e. 27934) that will act as todays '1' (check for CN existence but don't verify it).

    I think they owe everyone at libcurl an apology.

    --
    "Ubuntu" -- an African word, meaning "Slackware is too hard for me". - stolen from Dan C alt.os.linux.slackware
    1. Re:libcurl is not insecure by Anonymous Coward · · Score: 4, Insightful

      This is the quote from the FAQ
      >Q: How do I use cURL securely?
      >A: CURLOPT_SSL_VERIFYPEER must be set to TRUE, CURLOPT_SSL_VERIFYHOST must be left to its default value or set to 2. Anything >else, such as setting CURLOPT_SSL_VERIFYHOST to TRUE, will result in the SSL connection being insecure against a man-in-the-middle attacker.

      1. cURL is a C code library - you can't set a value to TRUE since this is not in the language syntax.
      So you has somewhere in your includes something like "#define TRUE 1" - you must be aware to this issue - this is an important part of the relations between computers/compilers/programmers.

      It is good that the default is secure, but this is bad API design. There are at least two ways it can be improved:

      1) The name "CURLOPT_SSL_VERIFYHOST" implies a boolean value, so "set(CURLOPT_SSL_VERIFYHOST, TRUE)" looks like reasonable code after a quick glance. Since the option is a multiple choice option, not a boolean, it should be named something like "CURLOPT_SSL_VERIFYHOST_MODE".

      2) C has had enums since forever. The values "1" and "2" are opaque magic numbers, and flags that are this important should be set with well-named enums, not with magic numbers. Further, if the API setter function was typed with the appropriate enums, the compiler would have complained when it saw "set(CURLOPT_SSL_VERIFYHOST, TRUE)".

      Yes, the application devs used libcurl incorrectly, and yes, the above criticisms are nitpicks, but a library this important should be designed very defensively to minimize the change that users will make dumb mistakes.

  8. Re:Man in the middle? by pthisis · · Score: 5, Insightful

    You're better off running your own CA and distributing that CA's public key to your internal apps. Then you can ignore outside CAs but still avoid MITM attacks.

    --
    rage, rage against the dying of the light
  9. Lousy documentation by ClayDowling · · Score: 2

    While libraries like cURL have excellent documentation, other libraries such as OpenSSL have terrible documentation. Assuming that the cURL developers understood how to use OpenSSL correctly, it's quite simple for me to use their library to establish a secure connection.

    What's harder is to figure out how to do it with OpenSSL. There is no obvious starting point for opening a secure connection that you can glean from reading the man pages. There are books you can buy on the subject, but that doesn't excuse the library authors from writing easy to understand documentation. The library itself is quite elegant: with just a few steps you have a secure connection that you can read and write just as if it were any other network connection (or, for that matter, a file on disk). But figuring out how to correctly set up and tear down a connection using that library isn't well documented at all.

  10. Re:Man in the middle? by dgatwood · · Score: 4, Insightful

    The current versions of SSL/TLS are never vulnerable to man-in-the-middle attacks unless a trusted certificate authority is compromised (as long as both client and server implement RFC 5746). Whether the certificate authorities are trustworthy is another question, of course.

    This particular problem is caused by folks disabling the SSL stack's built-in chain validation and then not implementing their own. As far as I know, there are exactly two correct ways to support self-signed keys in Android: provide your own trust store that includes trust for that specific self-signed key or subclass the X509 validation class to add that specific self-signed key as an additional trusted anchor into the list of trusted anchors that it returns. Unfortunately, there's a lot of very bad advice out there, particularly on sites like Stack Overflow, telling folks to disable chain validation entirely. The result is that not only does the app trust that self-signed key, it also trusts any self-signed key.

    It doesn't help that there's no canonical source for that information from Google, so there are many, many questions on sites like Stack Overflow that all ask the same basic question in different ways and get different answers....

    Patient: Doctor, when I drill a hole in my hand, I can't scoop up water from the bucket to drink.
    Doctor: Why did you drill a hole in your hand?
    Patient: So that the acid wouldn't stay in my hand.
    Doctor (alarmed): Why did you put acid in your hand?
    Patient: Because the bucket dealer wanted too much money for a bucket.

    Yeah, it's like that.

    --

    Check out my sci-fi/humor trilogy at PatriotsBooks.

  11. Re:Man in the middle? by Artraze · · Score: 4, Informative

    There's not really any such thing as a "legit" certificate; you're referring to a signed one. This does nothing to protect against a man-in-the-middle attack. What it does do is establish a chain of trust linking your certificate back to an authority. If that authority is trusted then your cert can be too (to the extent you trust the authority). If, and that's a big if, we trust that _all_ trusted authorities will thoroughly vet the certificates they sign then we can _trust_ that a MITM attack cannot occur, but realistically "legit" certificates do nothing more than that. If, say, the US DoD (once/often? a trusted authority) decides to MITM you, they can just sign a cert and MITM you.

    The only way to actually prevent MITM is to exchange the certificate (or some verification mechanism like a hash) in some sort of trusted manner (e.g. distributing it's hash with a client app).