Daily reminder that sites “protected” by cloudflare are effectively MITM attacks. HTTPS is now even more worthless. Cloudflare can see everything. this is a known fact and not a theory.

And if you think Cloudflare aren’t being tapped by the NSA, you’re sadly sadly naive.

All the “privacy respecting” sites use it too. So remember, as soon as you see that cloudflare portal page, you can assume that everything you plug into the site is property of NSA Inc. Trust no one, and do not trust code being served to you over the web if it comes through CF, there is no way to know what they’ve modified.

Edit: good info link below https://serverfault.com/questions/662946/does-cloudflare-know-the-decrypted-content-when-using-a-https-connection

  • youmaynotknow@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    I’m basically running all my self-hosted services over CF tunnels. Does anyone have a suggestion for an alternative to this? I’d like to remove CF from my life, but not at the expense of poking port holes in my FW.

        • Harrison@infosec.pub
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          7 months ago

          Remember not to compromise security in favor of privacy. To me they’re both important, but security wins every time.

          Remember that services directly accessible over tunnels, whether from cloudflare or frp or ngrok or whatever, are directly accessible over the internet. So if any of those various self-hosted services have a remote vulnerability, and EVERYTHING does sooner or later, you will be exposed. This is why I personally WG VPN to my home LAN rather than exposing most of my stuff via any sort of tunnel. Tailscale is another option I often recommend.

          I do use CF tunnels for specific purposes; Home Assistant Google Home integration for example, but I secure that via their “zero trust” authentication by validating incoming IP ranges, so only Google can reach the tunnel in the first place, everybody else is stopped by Cloudflare. For other services with human users, I have them authenticate via github or google oauth first. I also run all services accessible by the internet by any means on a restricted VLAN firewalled off from the rest of my LAN.

  • Harrison@infosec.pub
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    Cloudflare is a MITM by design. Calling it an attack is disingenuous; you’re signing up for the service of your own free will, not a victim.

    If a substantiated news article came out showing that Cloudflare shared SSL keys or otherwise gave direct access to various intelligence agencies without a court order, that would essentially destroy the company. So they certainly aren’t doing that.

    So then the question becomes whether those nefarious three letter agencies penetrated Cloudflare with APT tools and are silently listening to everything. Our adversaries are certainly trying, China, Russia, Iran, etc. If the NSA (which lacks a mandate to act on US soil, and CF is a US company) or perhaps the FBI hacked a US company, particularly one that covers like a third of the internet like Cloudflare, that would be a truly enormous scandal.

    But in the end, yes, it is a MITM. If you need your data to be E2E encrypted, don’t use it.

    • Possibly linux@lemmy.zip
      link
      fedilink
      English
      arrow-up
      0
      ·
      7 months ago

      What concerns me is that we really do not know what the three letter agencies are capable of. They operate outside of the demographic government. Many Americans are increasingly losing faith in the government and secret government programs do not help. It causes what is known as a chilling effect. People start self censoring which is very dangerous and harmful to democracy. Democracy needs transparency not secrecy.

    • FaceDeer@fedia.io
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      I could imagine the NSA embedding an agent inside Cloudflare specifically to keep an eye out for any foreign agents also being embedded in Cloudflare, rather than to dig out its secrets for themselves.

      • BearOfaTime@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        7 months ago

        In the 90’s telcos were exposed as providing a connection for feds to duplicate any and all comms.

      • Harrison@infosec.pub
        link
        fedilink
        arrow-up
        0
        ·
        7 months ago

        I’m sure the TLAs work closely in conjunction with all companies responsible for internet infrastructure, yeah. That is their mandate.

    • waitmarks@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      the NSA (which lacks a mandate to act on US soil, and CF is a US company)

      They absolutely do have a mandate to operate on US soil, that is actually the main mandate and there is a separate military agency (CNMF) that operates on foreign soil. They are both headed by the same guy though so they might as well just be one agency.

    • Scolding0513@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      If a substantiated news article came out showing that Cloudflare shared SSL keys or otherwise gave direct access to various intelligence agencies without a court order, that would essentially destroy the company. So they certainly aren’t doing that.

      excuse me, what?? The Snowden documents came out showing all these companies literally giving over all their data to the NSA like it was water from a spring, and they are all still in business. AT&T, facebook, google, microsoft, dropbox, etc. Yet you claim somehow cloudflare would be destroyed?? This isnt even funny bro.

      more recently, Hetzner was showed to have given backdoor access to the feds, yet people still buy VPSs from them, and in fact, 20% of TOR guard nodes are sitting on their infra RIGHT NOW!

      Case in point: people using such companies either don’t care or are really ignorant or stupid.

    • Coasting0942@reddthat.com
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      I don’t believe that the NSA has a portal giving them direct access (probably naive).

      They definitely have a secret agent 🕵️‍♀️ nerd on the inside providing intel on the structure. Maybe inject exploits or guide them when needed.

      They definitely have a direct e-mail address to cloudflare legal to serve national security letters that cloud flare is obligated to comply with. Which is a portal with extra steps, but which cloud flare can raise a fuss if they notice the requests are turning into vacuum cleaners, and not union membership research.

      • plz1@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        7 months ago

        Internet traffic gets mirrored to NSA data centers, that’s old news from the Snowden leak.

    • milicent_bystandr@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      7 months ago

      But in the end, yes, it is a MITM. If you need your data to be E2E encrypted, don’t use it.

      Or do use E2E encryption. You can still have a layer of encryption within the SSL tunnel that cloudflare controls. Like you’d do for an E2EE filestore: the webserver (and cloudflare) see the website woosh by, and all that you do on it, but the files themselves are encrypted opaquely to both, and decrypted only by a browser at the other end.

    • anar@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      Maybe I’m just jaded and cynical but it won’t “destroy the company” even if it comes out like that. The laws don’t apply to people at the top

  • TCB13@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 months ago

    And then there’s people using Cloudflare tunnels, Tailscale and others for self-hosting stuff… that also may have your keys or inject clients at some point…

    But we’re about to get downvoted to hell for pointing this out because our community is self-hosters that pride themselves on sovereignty can’t deal with the cognitive dissonance of having their favorite corporate solutions unmasked for what they are - spyware on steroids.

    • somethingsomethingidk@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      Tailscale keeps the private keys locally, . It just facillitates setting up wireguard. They could steal your private keys, as could any program you install with root access. But it would comepletely destroy their business, and it’s open source. I really dont think they have anything to gain by tricking everyone

      • TCB13@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        7 months ago

        They could steal your private keys, as could any program you install with root access

        There you go.

        and it’s open source.

        Are you sure that what you download from https://tailscale.com/download is 100% open-source and the same thing that is published on their repos?

        But it would comepletely destroy their business (…) I really dont think they have anything to gain by tricking everyone

        Same goes for Cloudflare. Maybe Tailscale is secure and good people, or maybe they copy all keys to somewhere and covertly share them with govt agencies.

      • MigratingtoLemmy@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        7 months ago

        Use headscale, I have no idea how people are OK with tailscale when they keep your keys and essentially have access to your network

  • cursed_technology@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 months ago

    CloudFlare is a huge danger to a free and open internet, in my opinion. I cringe every time I hear privacy-conscious people recommend it.

    • Scolding0513@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      absolute fax

      I cannot begin to tell how pissed this makes me.

      Please for the love of all that is holy, do NOT call your site or yourself “privacy-respecting” or “privacy-oriented”, and then meet me with a Cloudflare MITM to knowingly and willingly give over everything i input in your site to NSA Inc.

      I’m sick to my stomach of all these orgs and companies and people talking about privacy, and then they constantly do all these kinds of things thst prove that they don’t actually care about privacy or anonymity or anything in between. They are Vipers and Snakes trying to make a quick dollar on a buzzword. It’s become sadly trite.

      We must return to the dark ages of p2p. The age of self-hosting, blockchain (the truly good parts like monero), ipfs, bittorrent, tor onions, i2p, any other p2p or decentralized network - these kinds of things are all that stands between us and internet controlled by a handful of NSA-worshipping megacorps.

      • Citizen@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        7 months ago

        This is why I like this community so much!

        I always learn from people like you!

        We discuss, sometimes we agree sometimes we don’t, but we speak our minds freely and come up with some neat solutions!

        Thank you!

        Its time to use the technology for the benefits of humans not against them!

        Let’s look into better solutions together!

    • voxel@sopuli.xyz
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      there’s no alternative tho, and by definition alternatives will have the same level of access…

    • Possibly linux@lemmy.zip
      link
      fedilink
      English
      arrow-up
      0
      ·
      7 months ago

      True but from what I can tell there isn’t much in way of alternatives as Cloudflare is huge.

      I wish Lemmy instances would find alternatives.

  • u/lukmly013 💾 (lemmy.sdf.org)@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 months ago

    Oh, I searched it up and indeed that seems what it does.

    I thought it normally just forwarded all the traffic. I wouldn’t think people would just let someone else see all traffic between their servers and their users.
    I thought it was more like public SSH jump servers.
    Right, how else would the CF interstitial page work.

    I thought it was done just for the Quick Tunnels which don’t even require an account. I’ve used those a few times, but only in cases where plain HTTP would be OK.

  • Apollo2323@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    I mean most pirate sites have cloudfare in the front and even with legal request Cloudfare has denied giving the IP so many times.

    • wildbus8979@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      It’s far more useful for them to maintain that image while essentially acting as a giant Room 101 for the entire internet. The three letter agencies, the fusion centers, and the Five Eyes of this world caneasily just parallel construction their way into what ever legal shenanigans they need.

  • intro@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    7 months ago

    Is this also true about the cloudflare DNS over HTTPS option that Firefox provides in the privacy settings? If yes, then would it help if I changed the setting from ‘Cloudflare’ to ‘NextDNS’?

    • voxel@sopuli.xyz
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      7 months ago

      that’s just dns tho
      but yeah, obviously your dns provider can see the dns requests (aka domain names) you’re making, that’s the whole point of dns server

    • ssm@lemmy.sdf.org
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      7 months ago

      I use quad9 with DNS over TLS systemwide with openbsd unwind

      unwind.conf config

      forwarder { 9.9.9.9 port 853 DoT 149.112.112.112 port 853 DoT }
      preference { DoT }
      

      firefox’s use of cloudflare for DoH is irresponsible, and possibly worse than just sending your DNS queries to your ISP’s default servers. It would be in line with Mozilla’s other practices though.

  • edric@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    Isn’t it a money thing? I kinda remember reading somewhere that big corporate clients basically can have their traffic pass through without decryption because they pay enough for the service. So as usual, it’s the small individual user who gets shafted.

  • starman@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    7 months ago

    BTW, can someone recommend me nice alternative for fast and free static website hosting?

    I tried GitHub Pages, but I couldn’t get it working with subdomains.

  • TechNerdWizard42@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    Very true. But nobody cares or believes it. When you start saying that US made hardware like network switches, cryptographic algorithms, telecom radios, etc all have backdoors to the 3 letter agencies in 5 eyes plus the internet distribution over cloudfare or “the cloud” in Google, Amazon, Microsoft, then people just think you’re a tin foil hat conspiracist.

    The people are too stupid and ignorant to care enough to demand change. Why did the US lobby so hard to get Huawei off market? Because of course there are backdoors into the Chinese intelligence agencies. JUST LIKE US DEVICES! But nobody seems to make that correlation. China bad, China hardware spying bad, is the only thing they can get in their heads.

    Good to bring it up, but nothing will change. 99.9% of people don’t know what DNS or proxiing or caching is let alone Cloudfare. It’s just “the internet”. Some are aware of some agencies the US and five eyes have, but most don’t believe what they actually do and are capable of. The US is the best producer of propaganda in the world. Hollywood is amazing at it, as are US media sources. The FISA bill that just came up for reauthorization and passed had a whole PR campaign about catching terrorists and stopping Russia and China and Hamas. Nobody stopped to think how and why they even have any of that info in the first place and how it’s collected.

    Keep being the crazy uncle ranting about government spying because the world needs it.

    • Scolding0513@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      7 months ago

      factual statements. many people do know and care, but yeah, most people have no freaking idea what’s going on, let alone care. Even “privacy” people often don’t care.

    • Harrison@infosec.pub
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      I’m all for healthy paranoia, keeping my attack surface small. That’s just professional IT ops.

      Incendiary statements like saying US intelligence compromised the supply chain with hidden backdoors, those really do need to be substantiated to not sound like a crazy uncle. Our adversaries have counterintelligence also, they aren’t incompetent, and if Cisco or Juniper or whatever planted backdoors in hardware shipped to China, the Chinese would make a ton of noise about it. And so would we; Huawei was banned without any substantiated proof, out of fears that if used, their 5G infra could have hidden backdoors and the hardware would be so widely distributed that it would be onerous to replace.

      • TechNerdWizard42@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        7 months ago

        There is substantiated proof of Cisco and Juniper switches having US government backdoors through the management ports. They also have the capability of decrypting everything that passes through them and mirroring to an external host.

        I cannot say any more other than you will find that the NSA continuously denied all the backdoors that global security researchers were finding and Cisco denied putting them in. You will also find in leaked Snowden documents absolute proof that the NSA was behind it and did implement the backdoors and they do exist and work.

        I at the time being a lowly semiconductor designer with access to unreleased networking gear from the big guys, cannot say anything about what I know those spying piece of shit devices do. But I will say, go look up the Snowden documents. They speak louder than any random on the internet.

        And China has made a stink. It’s one reason their great fire wall is setup. It does somewhat prevent citizens from using western tools, but they know they do and really don’t care much. What it really is, is a way to monitor everything in and out. All the edge is Chinese hardware, no backdoors for the five eyes. Those prevent the backdoors, that are known or theorized, to be used. So essentially they are backdoored equipment inside a security fence that disallows the backdoor to establish a connection. Bad actors from within could make this bad for China. Or very very tricky phone home algorithms, but you have to be careful how it’s implemented in unfriendly territory.

        Most of the other countries just don’t give a crap. If the Ivory Coasts data is being spied on by the 5 eyes or China, they don’t care. Nobody cares about them either. It’s just the sad state of world power. Those that care, have a side.

        • Possibly linux@lemmy.zip
          link
          fedilink
          English
          arrow-up
          0
          ·
          7 months ago

          Did you seriously just say that the Chinese firewall is to prevent backdoors? Fun fact, it isn’t. It is a censorship and control tool that keeps the Chinese people from seeing anything but the official narrative.

          I do agree that hardware backdoors are bad though regardless of the country. We need more transparency so that multiple parties are monitoring for bad activity.

          • NuclearDolphin@lemmy.ml
            link
            fedilink
            English
            arrow-up
            0
            ·
            7 months ago

            You’re both completely wrong. This is the narrative the five eyes and three letters need you to believe.

            More important and more funded than domestic spying, US intelligence exists to facilitate regime change. The objective is to have both dragnet and targeted surveillance to obtain leverage (for strategic leverage, blackmail, or comms interception) over foreign political, social, and business leaders so they can maximize the unequal exchange between the US & developing countries.

            Keeping Africa, South America, the Middle East, and South East Asia from developing through political and social instability not only prevents them from competing with US exports, but more importantly keeps their economies dependent on natural resource exports, which they need to sell for cheap because they are dependent on technology imports.

            China as a manufacturing powerhouse threatens these unequal trade arrangements by supplying these undeveloped or developing countries with manufactured goods and technology, and thus is one of the primary targets of US covert regime change operations. (Also why you see news media crying bloody murder about China’s “dept trap diplomacy”). Much of this also applies to other developing powers that resist being imperialized or oppose US geopolitical goals like the USSR/Russia and Iran.

            So purpose #1 of the great firewall is to prevent the US from controlling its social and technology sphere and using it to cause instability.

            Purpose #2 is economic protectionism for China’s high tech sector. China knows that as long as it remains primarily industrial / low tech manufacturer, it will always be threatened by US intervention.

            By moving to high tech, China can eliminate its reliance on Western technology imports, eliminate threat vectors for adversaries to slip in, and let other rising nations like Vietnam, Brazil, Malaysia, and Mexico take some of the heat off them by outsourcing its manufacturing there. China also gets to benefit by having cutting edge tech that will benefit its public health, increase education levels, strengthen its military, and form the basis of its post-industrial economy.

            China “enforcing the official narrative” insofar as controlling public opinion is of far lower importance than denying the west avenues to destroy its society. China is incredibly diverse and a quick peek into Chinese social media reveals no shortage of western culture fetishizers, religious quacks, conspiracy theorists, anti-vaxxers, capitalist enthusiasts, shit talkers about political figures, and people pushing back on “the official narrative”. VPN usage is widespread. People read, share, and meme western news and social media.

            Yes they censor posts, no they don’t do that great of a job at it…because the goal isn’t censorship, its about denying the West the ability to exploit discontent to destabilize the country.

            See also:

            • Tibet in the 50s & 60s (notice the gap here, when the US thought China would be a useful bludgeon against the Soviet Union & allies)
            • Student protests in 1989
            • Honk Kong in 2019
            • Xinjiang when the US was in Afghanistan
            • Taiwan tensions and weapons sales ramping up now

            All of these being natural internal tensions exploited with great effort and to great effect by the US through mass media campaigns, radicalizing extremist and separatist groups, weapons transfers, and direct involvement in helping people commit violence.

            And the US isn’t Russia buying $10 million worth of Facebook ads and running not farms, this is the most developed, most funded, and most sophisticated intelligence apparatus in history. One so large, people with an interest in politics and spying, cannot name all the publicly known agencies without missing 5-10.

            You can quote me on this, if the US were to fall in the coming decades, the firewall would also fall within the year. Though, I suspect the US will just languish with internal infighting once the petrodollar loses reserve currency status and China takes the firewall down around 2035 once there aren’t powers posing a credible threat to its security.

            • Possibly linux@lemmy.zip
              link
              fedilink
              English
              arrow-up
              0
              ·
              7 months ago

              You can tell your self what ever you want but China still attacks journalists. You can’t even get on Reddit in China or use Signal or other encryption. It has nothing to do economic prosperity or anything like that. China is an authoritarian government who doesn’t want to lose control.

      • Possibly linux@lemmy.zip
        link
        fedilink
        English
        arrow-up
        0
        ·
        7 months ago

        There is a ton a proof of Chinese hardware backdoors. It started with some dude wondering what a particular chip on the board did.

        • TechNerdWizard42@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          7 months ago

          Same reason why Teslas are banned on Chinese military bases. Data goes back to US servers that are accessible by the US government at any time.

              • Possibly linux@lemmy.zip
                link
                fedilink
                English
                arrow-up
                0
                ·
                7 months ago

                The different in the US is that the US constitution grants US citizens protection and protects against totally tyrany. It is very much not perfect and the US is full of problems but at the end of the day I can still have my own beliefs without being in danger. Mass surveillance is very dangerous and I think it is a violation of what the US should stand for but the US still protects freedom.

                Also I do not think the US should be compared to China. At the end of the day two wrongs do not make a right. We should uphold strong ethics and be champions of individual freedom and democracy. We should challenge anything that we disagree with as the people need to be active in the government. If you challenge the state party in China you will be jailed or worse.

                The US has some dark history but we don’t bury it. Think slavery, Asian interment camps and South American conquest.

                • TechNerdWizard42@lemmy.world
                  link
                  fedilink
                  arrow-up
                  0
                  ·
                  7 months ago

                  Lol that piece paper is not a god. It’s useless jibberish written by traitors starting a now failed nation.

                  You have no rights in the USA. Everything you’re granted as a right, you are also denied as a right by other laws. It’s the playbook of a tyrannical society. Name ANY law that you have a right to, and then look up to find another law taking that exact right away from you.

                  Just like a tyrannical society, you’re guaranteed nothing. But you can fly under the radar if you agree with the political powers that be. Which is no different than any country at any point in history.

    • TrickDacy@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      nobody cares or believes it

      I mean, this community exists because people care and believe it. But sure doom, gloom, etc

  • iarigby@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    It is very weird that tools that support “onion” ssl - some way that would allow one layer of encryption for your “allowed” mitm which would keep almost all the request encrypted with key for the server.

  • Citizen@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    Well put!

    I’ve been saying this since they made their services available…Nobody listened to me.

    Usually when I said sth. like you mentioned, people look at me like they look today:

    Ohhh…You are a conspiracy theorist…

    No mate, I have a better understanding of the fucking computers and technology because I do this for a few decades…

    Hoping they will listen to you!

    • Deebster@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      If you’re blocking everything that’s proxied via Cloudflare or hosted on Google, the internet must be a very small place for you. I think even a third of Lemmy is behind Cloudflare.

        • Deebster@programming.dev
          link
          fedilink
          English
          arrow-up
          0
          ·
          7 months ago

          I know how federation works, but look at the network inspector and you’ll see you’re pulling a lot of images from Cloudflare-proxied sites (or you’re missing a lot, if you’ve blacklisted them).

          Anyway, I only meant that even Lemmy, with its anti-corporate culture, is still heavily using Cloudflare. “Only” 22% is still a lot in my book.

          I’m interested as to your motives - are you doing this as a boycott, and/or to protect your privacy (or similar)? Also, are you blocking domains one-by-one, or are doing something like using firewall rules?