I haven't worked with php and WordPress but I know that usually customers don't pay you month by month to hold their website/eShop etc.. they usually force a one time payment and maybe some enhancements in the future. What support? What not to ignore? Free labor?
charge accordingly - I worked with a startup that wants some aws admin work, upkeep.. they wanted me to make some database migrations to cloud, they were charging by the hour/minutes - they expected me to execute a script and stop charging... not even watch the progress of the migration... success/failure result, anyway that was in 2020, they're out of business now...
That's why we shouldn't be designing with mountains of dependencies in the first place. Your average almost static website with a single contact form doesn't need millions of lines of WordPress code and 20 extensions.
It can be, but it doesn't have to be that bad. I actually really like the way dependabot works on GitHub - after it detects an available update, you get one notification with a PR that bumps the dependency version, details about any vulnerabilities it patches (in case that's relevant to prioritization), and the results of any PR workflows you have to do build/test/etc. As long as those PR workflows are decent and green, it's pretty easy to hit merge, and you're up to date.
I don't mean the rote mechanics, I mean the cases where those workflows are not green, because the update broke something. The likelyhood of which keeps increasing with number of transitive dependencies. There's always someone who thinks a breaking change is absolutely neccessary.
yes but it depends on the architecture - if everything is built on modules, then yes... that's the price you pay for using them/relying on them during development, that's the cost of "rapid dev" - no free rides ;)
"back in the old days" you relied on a handful of core perl modules, now you need 9000 npm modules because there's a professional npm module installer cosplaying as a developer while he cyber glues them together in an AI driven IDE
We used to build our entire dependency chain. Kinda like making a new docker every 6-12 months, but this was before that. It was also much, much, MUCH easier to use.
Which also meant you built your own bespoke vulnerabilities all over the stack, and had zero chance of someone else finding them for you before they get exploited. Also no danger of being hit with a fully automated exploit, of course. I'm honestly not sure that way of working would fare better these days, from a security POV.
"built" means compiled from source, not wrote the code. That freed us from the OS forced upgrade cycle and also let us compile OUT some optional dependencies.
A friend of mine was told to look after an old PHP-Server
the PHP-version on it was so old, that PHP2Shell didn't matter ...
... is what I would have really liked to tell you.
But it was just old and out of support since 2019. if it was 0.2 versions older, it would have been save. except for all the other vulnerabilities of course.
PHP2Shell affected everything from 5.4 onwards. That came out like 2004 so if it was in Support till 2019 it should have been plenty more than 0.2 versions.
if one is able to pull this high-tech big brain trick and separate dev from prod, it's not that hard to prepare update of the LTS to another LTS version. Tested backups and not testing on prod are the king
you have to upgrade sooner or later, and the upgrade cycle should be accounted for. Of course it differs between companies and sometimes between teams within the same company.
developing new features on any version is increasing cost of migration. LTS changes only that you can better plan for the migration to another LTS. Using faster release cycle only changes the update cycle - updates and migrations are smaller but more frequent. It's always a trade-off
But it ensures a very painful upgrade to the next LTS, so that very often gets forgotten. Then you end up with all the people still using PHP 5, 6, & 7.
Picking LTS ensures manual work will be required. Avoiding it means you need to automate testing and updates. This is the same reason certificate lifetimes keep getting shortened, long life certs allow deferred refresh so it's inevitably manual. That ends up being insecure and causing breakage.
True. That's why people are still having difficulty upgrading from python 2 to python 3. The whole point is to freeze a version for a customer who is not going to upgrade during the lts version support period. Some times you don't need the latest version.
Best example I can think of is final fantasy 7 remake, all the three remakes use the same version of unreal engine, so the workflow and tool and all the previous work can be reused. You don't really have to worry about network security if that's not part of the scope.
102
u/Prod_Meteor Oct 25 '26
I haven't worked with php and WordPress but I know that usually customers don't pay you month by month to hold their website/eShop etc.. they usually force a one time payment and maybe some enhancements in the future. What support? What not to ignore? Free labor?
53
u/brazzy42 Oct 25 '26
TBH I really get it. With today's mountains of dependencies, Updating regularly is a horrible treadmill.
18
u/danielcw189 Oct 25 '26
A friend of mine was told to look after an old PHP-Server
the PHP-version on it was so old, that PHP2Shell didn't matter ...
... is what I would have really liked to tell you.
But it was just old and out of support since 2019. if it was 0.2 versions older, it would have been save. except for all the other vulnerabilities of course.
21
u/SAI_Peregrinus Oct 25 '26
LTS is a trap for the same reasons.
6
u/actionscripted Oct 25 '26
Alternatively, if you let it rot long enough it’ll be secure because the CVEs are only in the newer systems.
4
u/titpetric Oct 25 '26
Unarchiving an 8 year old repo and giving it a once over
1
u/scalyblue 28d ago
Ah I see there are people from the OTW here