A lot of people in techny internet spaces online are talking about a PHP embargo. What does that mean and what’s going on?

  • ikidd@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    8 hours ago

    There’s a bug. Update it.

    Pretty simple, but apparently people have decided to lose their minds over this one.

  • slazer2au@lemmy.world
    link
    fedilink
    English
    arrow-up
    54
    ·
    edit-2
    16 hours ago

    Php is a programming language from the 90s that is still popular today but is kinda the punching bag to other languages. This week the people in charge of php said they are releasing emergency patches in a couple hours and take non critical systems offline until you have patched.

    This has brought on a new round of bag punching.

      • dgdft@lemmy.world
        link
        fedilink
        English
        arrow-up
        56
        ·
        16 hours ago

        It’s the backbone for a lot of other software, the Wordpress ecosystem most notably. Inertia is the big factor in terms of popularity.

        Old school PHP was all about the LAMP stack (Linux as your operating system, apache as your web server, mysql as your database, php as the runtime apache would use to serve dynamic documents). The ecosystem was the real benefit that made it sensational for the era; all the pieces were designed to play nicely with one another.

        It was also really noob friendly: You could write basic html, copy it to your web server, reload in browser, and see changes. Then to make things dynamic, you sprinkle in a few <?php ?> tags in your html, copy it to the server, and it starts working! The code inside those php tags gets run by the web server and their output is written into the HTML. No reloading or resetting apache needed, and you need very little programming knowledge to start.

        The modern language is… serviceable, but lost the key features that made it great.

      • slazer2au@lemmy.world
        link
        fedilink
        English
        arrow-up
        26
        arrow-down
        1
        ·
        16 hours ago

        Because it works. Why spend the money to rewrite something in another language when the current one is working fine?

        • BorgDrone@feddit.nl
          link
          fedilink
          arrow-up
          2
          ·
          5 hours ago

          That’s the problem with PHP. It’s quite easy to build something that works. It’s quite another to build something that works and is secure, scales well, is maintainable, etc. The thing is that ‘it works’ is something that people see immediately. Those other things they only get to experience when it’s too late.

          This is compounded by the fact that because it’s so easy it attracts a lot of inexperienced developers who don’t even consider things like security. Add to that that the language is full of footguns.

          That’s not to say it’s impossible to build good apps in PHP, but that is despite the language, not because of it. It takes experience, knowledge and discipline to write something secure and maintainable in PHP. Something a lot of PHP users don’t have.

          • slazer2au@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            4 hours ago

            Yea it does. Every language has bugs, every program has bugs. The measure of a language is not does it have bugs its how does the governing body respond to problems.

            You could have the best language, fast to run, fast to build, uses low resources, but I’d the governing body responds to bug reports saying “well don’t do it then” or “user error” its adoption is not likely to happen.

      • schnurrito@discuss.tchncs.de
        link
        fedilink
        arrow-up
        14
        ·
        16 hours ago

        WordPress powers a huge percentage of all websites, and that’s written in PHP. MediaWiki is too, although that’s obviously a much smaller percentage.

      • Björn@swg-empire.de
        link
        fedilink
        English
        arrow-up
        5
        ·
        edit-2
        14 hours ago

        The patches were released yesterday, more than 24h ago. Originally they were supposed to be released today but some info leaked so they decided to step up the timetable.

    • somehacker@lemmy.world
      link
      fedilink
      English
      arrow-up
      12
      ·
      14 hours ago

      Chainguard claims they had evidence of exploits being used in the wild. If that’s true breaking the embargo was the correct move. The embargo is only useful if the exploit isn’t in the wild.

  • r00ty@kbin.life
    link
    fedilink
    arrow-up
    11
    arrow-down
    1
    ·
    15 hours ago

    Don’t worry. Everyone is just doing

    sudo apt update
    sudo apt upgrade
    sudo shutdown -r now
    

    Job done.

    Oh and if you want to check your work.

    r00ty@r00ted ~ $ php -v
    PHP x.x.x (cli) (built: Oct 21 2026 xx:xx:xx)
    

    Job definitely done.

    • Strider@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      5 hours ago

      You wanted to say, everyone in this field worth his salt had this automated and is ready for the regular cve appearance…

      • r00ty@kbin.life
        link
        fedilink
        arrow-up
        2
        ·
        4 hours ago

        Well I meant also hobbyist server operators are just going to run those things, and get it done. Server farm operators definitely need automation, yes.

        • Strider@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          4 hours ago

          I disagree to a certain grade. If you have Internet facing services, this is not optional.

          Eg automated security updates every night.

          But what events like these always show is that even many professionals are doing it manually and amateurs partly never.

          This is an observation.

  • FriendOfDeSoto@startrek.website
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    14 hours ago

    In simple terms, PHP is a language telling servers on the internet what to do. There is a problem with it, one that’s been known for a long time. But it wasn’t considered a major one because using this problem for hacking purposes was thought to be so much work nobody would use it.

    Enter LLM agents. They have all the computing power in the world and time isn’t an issue. They used this vulnerability. And the internet panicked. Lots of smaller operations shut down as a precaution. I think there is a patch in the works. Edit: Patches are out already.

    An embargo seems like a natural response to a threat like this. I’m not sure if it’s a good idea because I don’t know if you can just transition to using a different scripting language on any server. I understand it’s a fairly old language in internet terms. So it might be time to move on, I don’t know.

    Edit: I think I misunderstood the question. The embargo people talk about is more like the iPhone review embargo. The new iPhone gets released to reviewers ahead of public release so they can test and produce their pieces. And the embargo end day is when they can release their findings. The PHP embargo is, I think, the movers and shakers behind the scenes agreeing to shut up about the details of a vulnerability until the patch is out. If they go public before the patch then more bad actors get the blueprint on how to exploit the vulnerability.

    I will take no follow-up questions because I had it explained to me like I’m a 5yo.

  • tjoa@feddit.org
    link
    fedilink
    arrow-up
    4
    arrow-down
    11
    ·
    16 hours ago

    It’s a nothing burger but every web dev is doing overhours cuz that one stakeholder said so.