The Register Home Page

back to article PHP blames supply chain security biz Chainguard for putting huge chunks of the web at risk

PHP developers have accused software supply chain security shop Chainguard of effectively revealing critical bugs in the open-source scripting language ahead of a planned official disclosure. On Wednesday, just hours after releasing emergency patches for the two bugs collectively called PHP2shell, PHP maintainers published a …

  1. drankinatty Silver badge

    it’s going to be a doozy

    "While we still don’t know the scope of exploitation - or what will happen to vulnerable legacy systems that don’t have security fixes - threat hunters predict it’s going to be a doozy."

    That pretty much says it all.

    The understatement of the day seems to be in the "or what will happen to vulnerable legacy systems" part.

    Patches are available from PHP back to 7.4 for these two CVEs, but that leaves the rest of the exposed legacy servers hanging out in the wind. While they are only 2.7% of the publicly exposed PHP servers, many may be on industrial systems or microcomputers (like Raspberry Pi systems setup with Buster and long since forgotten).

    And then there will be the disruptions to production systems, heretofore running on highly patched versions of PHP 5.6 for which no patch is currently available. I suspect many caught in that boat may hold decades worth of data running on open-source packages that were simply never updated for PHP versions that came after the project went away, etc..

    It's beginning to look like releasing models capable of cracking the security of the world at large, may be added to legal dictionaries as a per-se example of gross-negligence. Jumping the gun on disclosing the issue, a likely subheading...

    It's going to be a doozy... I suspect there will be a lot of nervous of sleepless admins tonight.

  2. MaChatma CoatGPT 2.0
    Alien

    Very weird news this morning

    The breakfast news routine in the Coat household is to fire up the RSS reader* and check what's happening around the world. Today, all the mainstream news sites were filled with gory headlines about the entire Internet** being close to collapse due to something called PHP***.

    The weird thing was that there was no mentions in any of the tech press at the time. I assume this may have been tech journos waiting for the full picture before publishing while Fleet Street and its overseas equivalents rushed to be first. Normally the tech news people have the tech news first. Just an observation.

    * I read a selection of centrist news sites from various countries to discern an average view of world events.

    ** I thought PHP was a web thing, not an Internet thing. 30 something years on and the MSM people still don't understand the difference.

    *** I can't imagine many MSM journos had even heard of PHP before today.

    1. RockBurner Silver badge

      Re: Very weird news this morning

      Truism 1 of the news media : Bad news sells papers.

      Truism 2 of the news media : Making bad news seem even worse than it actually is sells even more papers.

      Truism 3 of the news media : Profit is king, reality (actual truth) is the peasant slinging mud in the swamps.

      Truism 4 of the news media : no backsies.

    2. Pete 2 Silver badge

      Re: Very weird news this morning

      > I can't imagine many MSM journos had even heard of PHP before today.

      Oh, I'm sure many of them have. What with it being a class B drug: α-Pyrrolidinohexiophenone

      1. nobody who matters Silver badge

        Re: Very weird news this morning

        Joe Tidy (who styles himself BBC Cyber Correspondent) actually said in black and white this morning that he had never heard of PHP until yesterday.

        Rather begs the question as to whether he is knowledgeable enough to hold that title, but hey-ho...

        1. BOFH in Training

          Re: Very weird news this morning

          PHP powers wordpress which powers about 40% of all the websites on the internet. Not to mention wikis and other sites made with PHP.

          Looks like we now know how good this person is when it comes to knowledge of cyber anything.

        2. Pete 2 Silver badge

          Re: Very weird news this morning

          > whether he is knowledgeable enough to hold that title

          Maybe not. But I suspect he is still more IT literate than anyone else in the organisation.

        3. Anonymous Coward
          Anonymous Coward

          Re: Very weird news this morning

          BBC's idea of tech is whatever Elmo is upto right now

        4. CrazyOldCatMan Silver badge

          Re: Very weird news this morning

          Joe Tidy (who styles himself BBC Cyber Correspondent)

          He's (marginally) more techie and competent than the previous incumbent. Which really, really isn't saying much.

          My wife knows more about technology than he does and she *hates* techie stuff. Apparently it's "my problem" :-)

    3. Fonant Silver badge

      Re: Very weird news this morning

      There was a definite over-hyping of the situation, IMHO, tied to the general background hysteria about "AI" being both humanity's saviour and destroyer.

      This PHP vulnerability was not easy to take advantage of, especially not for busy servers using PHP-FPM (PHP running in a separate process from the web server).

      In my experience I've had a lot more trouble with WordPress plugin vulnerabilities. Those have been exploited to gain permission to write to the filesystem. Luckily almost always to send spam email, rather than deliberately target websites themselves.

      1. CrazyOldCatMan Silver badge

        Re: Very weird news this morning

        There was a definite over-hyping of the situation

        *Cough* Y2K..

        Yes, yes, I know. I was there, did the contracts, got bored out of my brain. Everyone now thinks that there was never a y2k problem at all - that's because we did a lot of work to make sure there wasn't..

        Even my somewhat techie boss was astonished that there was an actual y2k problem and that it wasn't all a big con. I'm sure that came into it (the EKS agencies made several mints during 1998/9 supplying contractors for y2k roles. Some of them even knew how to use a computer!) but there was a genuine problem underneath it all.

    4. Anrtryg
      Coat

      Re: Very weird news this morning

      Frankly, the weirdest just got published as an article in one of Swedens normally-much-better-than-this newspapers.

      It stated quite clearly that this was a MESS, and now we must quickly upgrade routers, firewalls, IP cameras, medical equipment and so on and so forth .... everything running, in fact, the world's most common programming language: PHP

      retirement < 100 months.

  3. Pete 2 Silver badge

    Confession time

    > “And then I woke up this morning and saw that this was all our fault"

    Have you ever woken up to find your action has caused world wide disruption? Tell El Reg about it.

    P.S. American presidents need not apply

    1. Paul Herber Silver badge

      Re: Confession time

      Headline :

      Early morning motion in the house causes web pipe blockages.

      Kitty videos on t'interwebs delayed! Shock, horror!

    2. wolfetone Silver badge
      Trollface

      Re: Confession time

      I wonder if the Crowdstrike lot read "Who, Me?" and are trying to work out if it's too soon or not to send in their story.

    3. Martin Eddington

      Re: Confession time

      Nah. Did mess up the whole of Sweden for a few hours in the 90s though. That was fun.

      1. Alan_Peery

        Re: Confession time

        Have you given the back story to the Reg for our joint entertainment?

  4. david 12 Silver badge

    Laughing now

    Our Web Provider closed down their Web business last year, after deciding that patching was too much work. (We moved to Cloudflare).

    I bet they've been glad ever since.

    1. A Non e-mouse Silver badge
      Meh

      Re: Laughing now

      I used to self-host bits & pieces. At first it was fun. Then the complexity grew. Then the frequency of patching and keeping it secure got worse. And I just gave up.

      1. HereIAmJH Silver badge

        Re: Laughing now

        Isn't this becoming life in general? Or at least technology. My car tells me "don't turn me off until I say it's Ok, I'm doing an OTA update and I'll brick myself in a heartbeat if you don't obey." I've been playing with Home Assistant to reduce labor, but I make up for it installing updates. Computers, phones, watches. OSes and apps. My phone tells me "I now have new features", I don't care, but quit moving the things that I use.

        Is my choice for the future Unibomber lifestyle or slave to device updates?

      2. CrazyOldCatMan Silver badge

        Re: Laughing now

        At first it was fun. Then the complexity grew. Then the frequency of patching and keeping it secure got worse. And I just gave up

        That pretty much sums up my minor email/web hosting career (hosted emails and website for a brothers business and our church). Got woken up at silly o'clock in the morning because an important email hadn't arrived (mail appliance was sulking) or the spam filter was blocking something or he'd changed his phone and couldn't get his email to work or... or... or..

        In the end, I couldn't be bothered to work a full (ha) day at the IT coalface *and* do it at night for free (at the cost of quite a bit of our leccy, running two Proxmox boxen).

        So I outsourced the email and websites and shut down the proxmox servers, useful as they were in the winter as space heaters. Cue being able to sleep a full nights sleep most of the time (kittens permitting!)

  5. Charlie Clark Silver badge
    Stop

    A bad developer blames someone else

    Who cares if it was Chainguard or anyone else, alse the quote makes clear: people last week were aware that there was an important fix coming and were able to diagnose the problem themselves. If they could, then so could others including no doubt the TLAs and other spy organisations.

    1. nobody who matters Silver badge

      Re: A bad developer blames someone else

      Not to mention the IT aware criminals and scammers ;)

    2. Richard 12 Silver badge

      Re: A bad developer blames someone else

      The quote about using such a simple prompt implies that at least one of the AI companies decided to expose the embargoed patch to their AI systems - whether by accident or intention.

  6. Dr Fidget

    PHP is open source so who's contributing?

    Lots of Government departments and Corporations have been hit by the bugs found in PHP.

    My question is - which of these Governments and Corporations are contributing to the development of PHP, either with funds or providing paid-for developers?

    I suspect it's bugger all so they deserve to have all there web-sites compromised as they are just leeches on the opens source community.

    1. Anonymous Coward
      Anonymous Coward

      Re: PHP is open source so who's contributing?

      A bigger issue with PHP specifically, is that it seems to be a lot of work to upgrade code to work with newer versions of PHP.. This means there's plenty of systems out there running massively out of date versions, which will require practically a full rewrite to bring them up to a supported version of PHP.

      I suppose the silver lining is that there's probably a lot of stuff running pre-5.4 versions of PHP which aren't vulnerable (to this specific issue anyway).

      1. Tron Silver badge

        Re: PHP is open source so who's contributing?

        In the UK my host stated that the NCSC has forbidden early unpatched versions, so anyone with an early version is being updated to 8.3. Others are doing it to 7.x. If their website doesn't work with the updated version, they may be offline for a bit. This may affect govt. websites and infrastructure which tend to be implemented and left, as they just work and there is no real maintenance budget/staff.

        AI has no ROI but unlimited potential for loss by turbo-charging hacking.

        Re: Contributing. I doubt there is even a corporate mechanism for donating cash to a foreign open source org during a system implementation. That is not how business works. FOSS is great when it works, a pain when it doesn't, and has not made enough of an attempt to allow integration with the retail economy. Not with ordinary users, or anyone else.

        The usual: Detach your infrastructure, intranet and data stores from the internet entirely. Only connect a disposable system for internet-facing activity. Do it now, and then rebuild a safer tech architecture. SaaS, Cloud and AI are over. Get back on prem, and remove as much from the net as you can. Don't plan to do it some time in the future. Design out risk, or just play whack-a-mole until you are pwned.

        1. Oneman2Many Bronze badge

          Re: PHP is open source so who's contributing?

          "Get back on prem, and remove as much from the net as you can."

          Why ?

          1. Oneman2Many Bronze badge

            Re: PHP is open source so who's contributing?

            Further more, most hyperscalers were already filtering traffic for potential attacks, adding an additional layer of security that on prem wouldn't be getting.

        2. IGotOut Silver badge
          FAIL

          Re: PHP is open source so who's contributing?

          Once again Tron...wtf are you on about!

          "The usual: Detach your infrastructure, intranet and data stores from the internet entirely. Only connect a disposable system for internet-facing activity"

          Stop comparing home / teeny tiny setups with the real world.

        3. HereIAmJH Silver badge

          Re: PHP is open source so who's contributing?

          Re: upgrading websites to run on the current version of PHP and AI ROI

          Wouldn't upgrading codebases be a good use of AI? You do have accurate design documents and unit testing, right? Ok, knowing my former employers, we'd probably have to use AI to create design documents and unit tests for the current codebase, then do the upgrade. I've never seen a Jira ticket for writing docs or unit tests.

    2. Anonymous Coward
      Anonymous Coward

      Re: PHP is open source so who's contributing?

      You don't want those morons contributing to PHP, or anything else, for that matter.

  7. Bebu sa Ware Silver badge
    Devil

    Nearly 30 years ago…

    when I first encountered PHP - I think it stood for pretty home page back then - I almost instantly vowed "not now, not ever !"

    Never regretted that decision. You can run PHP if you wish — just not on my server.

    Actually jailed server, no cgi, read only DocumentRoot and IncludesNoExec.

    Life can be beautiful if you can just say no to the torrents of shit each suceeding generation manages to heap upon themselves and any poor sod in the proximity.

    1. Anon
      Pint

      Re: Nearly 30 years ago…

      So you denied yourself all those WordPress vulnerabilities too?

  8. TJ1
    Stop

    according to the PGP Foundation ?!?

    Off by one error

    1. Paul Herber Silver badge

      Re: according to the PGP Foundation ?!?

      Doesn't that take the PIP.

  9. Pete Sdev Silver badge
    Holmes

    Ah-ha

    The egotistical wankers have names: Dan Lorenc and Chainguard.

    What a bunch of cunts.

  10. Missing Semicolon Silver badge
    Devil

    Use-after-free in the runtime?

    Re-write in Rust by Claude?

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon