AllStarLink's email about the PHP2Shell vulnerability gives the right advice: if you run ASL3, install the latest updates through Cockpit or the command line. However, I'd add one step. Installing an update replaces the files on disk, but programs that are already running can keep using the old code until they restart. Your node can report "all software is up to date" and still be running the vulnerable version.
The simplest fix is to restart your node at a quiet moment, after the updates finish. It's offline for about a minute, and connected stations drop. From the command line:
sudo reboot
To confirm everything is current and actually running, I wrote a free script that checks your ASL3 node in about a minute and explains what it finds in plain language. It doesn't change any settings. When I ran it on one of my own nodes last week, every package was up to date, yet 19 services were still running old code until I rebooted. Walkthrough:
One note for Allmon3 users: Allmon3 itself doesn't use PHP, but if you've added Supermon, AllScan or another PHP dashboard to the same node, those do run on PHP, so updating is needed.
The standard PHP packages in Debian will restart the PHP-FPM service automatically which is what is normally used, especially in the ASL3 Appliance package. If there's something custom done to a node otherwise, a reboot is the cleanest option.
Thanks, that’s very good to know. It means a standard ASL3 node picks up the PHP2Shell fix as soon as PHP is updated.
My broader concern is that an update brings in more than PHP. The same apt upgrade usually updates libraries like OpenSSL and the C library too. A few packages restart their own services during the upgrade, as PHP-FPM does, but most programs that use an updated library keep running the old copy until they’re restarted. On my own node, after every package was up to date, 19 services were still running old code, including core parts of the system. None of them were PHP, but they were still running code the update was meant to replace.
So I think it's safer if users don't assume that “updated” means “now I'm running the update.” A reboot at a quiet moment settles it, and it’s an easy habit for node owners who aren’t Linux administrators. For anyone who wants to check before rebooting, the needrestart package or my script will show which services are still running old code.