Someone: “… the new php vulnerability”

Me: “wait what, another one?”

S: “Yes”

I had exposed services for years, never a problem. I don’t have time to be on top of all of this. Im going random high port wireguard access only.

  • Jerkface (any/all)@lemmy.ca
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    3 days ago

    If you had told me 30 years ago that PHP would be responsible for billions of dollars of losses, I would have said, “I TOLD YOU SO!” Haven’t run it since I was forced to write it, the worst thing I’ve ever written in.

  • foggy@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    2
    ·
    3 days ago

    Random high port will not make you any more secure.

    You can use a tool like shodan or censys to quickly get a list of IP:ports with PHP <8.0.

    • exu@feditown.com
      link
      fedilink
      English
      arrow-up
      5
      ·
      3 days ago

      Wireguard is UDP only. A UDP service doesn’t have to answer invalid requests and Wireguard doesn’t, unless you present the right key. This means it’s basically impossible to tell an open port from one where no service is listening.

      • groet@feddit.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 days ago

        Depends on your firewall though. If you have a “default deny” then the random wireguard port will not send a RST package while the closed ports will. But UDP only sends a few RSTs per second so if you do a UDP-portscan, most systems will only send RSTs for the first few ports and then stop. If you scan very slowly you can find a wireguard port, but you can still not know it is wireguard, just that the port is actually open.

        • exu@feditown.com
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 days ago

          Reject is good for internal rules, but externally you should use drop all the time

  • ultimaluz@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    same here more or less, at home nothing is open anymore, everything goes through tailscale and a raspberry pi that also does the wake on lan for the big pc when I need it. the only thing exposed is a hetzner vps with a small browser game, and there I keep it boring, ufw with just 80 and 443 (and rtmp for a stream relay), caddy in front, the node app and postgres only reachable from inside the box. I guess that’s the trade off that works for me, whatever strangers need to reach lives on one machine I watch closely, the rest stays behind the vpn

  • Auli@lemmy.ca
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 days ago

    Why a random high port? Wireguard doesn’t respond on its port unless it gets its “handshake”, so acts as stealth.

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 days ago

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

    Fewer Letters More Letters
    Git Popular version control system, primarily for code
    SSH Secure Shell for remote terminal access
    TLS Transport Layer Security, supersedes SSL
    UDP User Datagram Protocol, for real-time communications
    VPN Virtual Private Network
    nginx Popular HTTP server

    6 acronyms in this thread; the most compressed thread commented on today has 9 acronyms.

    [Thread #173 for this comm, first seen 20th Nov 2026, 11:40] [FAQ] [Full list] [Contact] [Source code]

      • GreenKnight23@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 days ago

        an open port is to an open door as an unsecured port is to an unlocked door.

        if you open your unsecured ports to the internet you’re telling anyone “walking” by that they can “come on in” and to “take or do anything” that they want to.

          • GreenKnight23@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            2 days ago

            you do realize why ports are called ports, right?

            The term port in networking derives from the Latin words porta, meaning “gate,” and portus, meaning “harbor.” This reflects the concept of ports as entry and exit points for data, similar to how a harbor serves as a docking point for ships.

            now tell me…what would you call a door on a house? a way…a gate…a gateway…oh yeah, a port of entry and exit!

            go back to networking 101.

            • Encrypt-Keeper@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              arrow-down
              1
              ·
              2 days ago

              Give it a rest Donny, you’re out of your element.

              Your rudimentary understanding of networking and security that exist only in the abrstact aren’t fooling anyone.