Unofficial Hacker News client - receive Push Notifications on replies.

Post-quantum encryption adoption (opens external site)

424 points by mfiguiere 1 day ago | radar.cloudflare.com | 241 comments on HN | Vote on HN (opens Hacker News)

View full thread · View on Hacker News

Comment thread (18)

  1. Only 28.7% of the origins supporting it is surprisingly low. I'd expected it to be a lot higher given that it's pretty much automatic if you're running any modern web server and OS. Is it a handful of big providers with millions of domains or a long tail of independent websites with outdated operating systems / lack of TLS entirely?
    Replies (4)
    1. I would think vast majority is bog standard corporate crud. I'm actually surprised at the 28.7% origin support thinking it would be lower.
    2. Microsoft customers took years and several extensions to move to TLS 1.2

      https://learn.microsoft.com/en-us/lifecycle/announcements/tl...

    3. The state of Cloudflare origin TLS is kinda bad, TBH.

      A ton of Cloudflare customers' origins are either presenting snake oil certs, are using Cloudflare's "Flexible" mode (aka: plain text HTTP to the origin!), or "Full" (not "Full (Strict)"), which trusts any certificate presented and thus means mostly undetectable MITM is possible.

      It looks like CF now has "Automatic" mode, which will enable Full (strict) if it sees your origins are presenting a valid certificate; but this is kind of even worse since it means people are even less likely to be encouraged to do the infrastructure upgrades to get "Full (strict)".

      The page also has pretty bad wording.

          Mode details
          Flexible 
          
          Browser --(secure)--> Cloudflare ----> Origin Server
          
          Used for: Most production sites.
      
      This wording for Flexible is atrocious. The situation is literally that any middlebox can passively see your origin traffic and saying "you're fine because most _production_ sites on Cloudflare are like this!".

      Deep link to the TLS mode page: https://dash.cloudflare.com/redirect?to=/:account/:zone/ssl-...

      Replies (4)
      1. Agreed, it's kind of ridiculous that a web security company has 3 of their 4 SSL options be "Allow anyone to MITM me".
        Replies (4)
        1. Also, looks like this part of the page shows its vibe-code-ness pretty badly.

          If you have explicitly selected "Flexible", it does say

              Legacy origins that do not support modern TLS standards/packages, or when you cannot install an origin certificate.
              Will cause errors if your origin forces HTTPS.
              If this is your only option, Cloudflare recommends upgrading your origin
          
          
          But the default (for new zones) "Automatic" doesn't include those, even if the automatic selection is "Flexible".

          The help text (and of course warnings) should definitely show up depending on what automatic's selection is, and there should be links explaining "why" Flexible/non-strict is so unideal.

          Replies (1)
          1. Please take a look at my open source project https://github.com/insanai/sibuna, it does support post-quantum cryptography on your existing origin, so you have time to migrate.

            I wrote a small chapter on it how you can do it with sibuna:

            https://insanai.github.io/sibuna/book/post-quantum-transport...

            Sibuna also supports automatic https like caddy using ACME, but letsencrypt still do not issue post-quantum encryption certificates. So it won't be post-quantum encryption.

            This project is written with the help of LLM, and I use it on my own infrastructure to replace haproxy. But if you do not like products built with the help of LLM, please do look at haproxy or nginx.

        2. That has happened.

            "[ThePirateBay] had set up their configuration in such a way that the connection from Cloudflare back to the customers origin was not passed over an encrypted link. Clouldflare has the ability to pass that over an encrypted link. We don't have any idea why [ThePirateBay] chose to do that, but that's the customers decision."
          
          https://www.medianama.com/2016/07/223-cloudflare-ceo-matthew...

          Discussion at the time: https://news.ycombinator.com/item?id=12091900 (2016).

        3. It is, but if the product is perception of security, not actual security, it makes sense. As long as customers see "connection is secure" in their browsers, it's all good, right?
        4. Paid for by the NSA. There's a reason it's free
      2. Wait wtf??
        Replies (1)
        1. For a long time (years after the first public reports) authenticated origin pull (where the origin server requires a client cert from Cloudflare, to make sure an attacker can't talk to the server directly and bypass the filters/rules set up at Cloudflare) was quite broken.

          If you configured it according to their manual, anyone could set up a second web site on a different host name with Cloudflare, point it to your origin, and send arbitrary requests to your origin using their not your rules. I think at some point they closed the loopholes that allowed you to tamper with the Host: header, so you were safe your origin required a specific Host: header, but the documentation didn't mention that.

          It took them years to address this even though they could have at least updated the documentation to mention the host check.

      3. Wouldn't the MITM rely on someone having to intercept traffic between Cloudflare and your server, though? Isn't that quite tricky except for state-level actors?
        Replies (2)
        1. Cloudflare only covers a short path between the visitor and the Cloudflare POP, usually the nearest big city. Without Full (Strict), the rest of the path to the origin is then either cleartext (Flexible SSL), where any passive hop can read the data, or untrusted SSL, where an active hop can MITM it. While interception is usually thought of state actors slipping prisms into fibers, these days it's likely a compromised router or ISP along the path. Governments have demanded ways to "lawfully wiretap" communications, so these facilities are built in to modern networks, it's just a question of who gets to turn it on and where the data goes.

          This isn't just theoretical, ISPs are known to have intercepted insecure Cloudflare connections: https://medium.com/@karthikb351/airtel-is-sniffing-and-censo...

        2. Who are you worried about when visiting an http:// site? You should be worried about those same people except the ones on your local network.
      4. I configured Cloudlare “Full (strict)” for a simple and small website, I (and by “I”, I mean the agent I was using) didn’t find any difficulty. What kind of problems do people have with it? Can’t they simply go on with it and end of the story?
        Replies (1)
        1. the biggest issue is most certificate systems use DNS verification to issue a cert. if cloudflare is managing your DNS, you now have to verify through cloudflare dns for your origin servers. it's not impossible but certainly more convoluted and cyclical. we have a few weird workarounds in terraform to do this.
    4. Both. The "automatic upgrade" trend in software has yet to arrive on the server, so nearly all server software is perpetually out of date.