>The advisories say what to update and which folders to check, but not what an attack request looks like or what it leaves behind.
I feel like even this is going to stop. Everyone with internet access and a few bucks to spare can point an abliterated high end cyber model (which are now even hosted across several APIs) to rediscover the attack.
Why should thousands of end users spend money to run llms to answer the same question when someone could just share it as part of the disclosure? Isn't that like the point of the internet.
"wp-ajax.php" is a good idea, but long term, instead of paying yearly subscriptions for those premium WP plugins, spend that money on an AI subscription and start slowly migrating to something like Laravel+Corcel. You will end up with something fast, secure, and scalable, something that solves your unique problem in a way you want and you’ll be able to extend it later. Or just switch to a static website generator.
Wordpress core has always been garbage. I raised an issue to fix $page and $paged variables being confusing and misleading..12 years ago. To date they haven't done shit.
Last I checked, maybe a few years ago, the $wpdb object that everything uses for database interactions still doesn't use real prepared statements through mysqli or PDO when you use $wpdb->prepare(), even though the docs pretend this is a thing.
Under the hood, the fake prepared statement methods are basically just doing string concatenation and attempted sanitization. Basically living in mysql_real_escape_string land years after the old mysql_ functions were deprecated, when every sane language and application is letting the database driver handle parameters separately.
It is, by far, the most infuriating project to try to get ANYTHING done in. There's some extremely talented core devs who are stretched too thin, and there's no actual mechanism to bring in more people. Then there's just a TON of enormously mediocre and bureaucratic people who meddle in everything. If you arent part of the cool kids club (and worse, try to tell them they aren't as cool as they think they are), only exasperation will ensue.
Of course, it all stems from the fact that there's a non-benevolent dictator for life who literally owns the entire project.
> the absence of any form of sandboxing on plugins is wild
Quite impossible to add without reworking almost everything based on how Wordpress works in architecture level and how plugins are actually used in most of the time
Impossible no, but quite hard, yes. Even if it's hard though, still makes it wild that seemingly they aren't even actively working towards it, last time I checked (which admittedly was a couple of years ago).
It's simply not going to be possible to efficiently sandbox plugins in a PHP environment with pure PHP, and WP plugins are often so lightweight (a couple of functions) that a site may have a dozen of them. I can't imagine what a practical scheme would look like to sandbox single functions, because of the way actions and hooks work.
There is no sandboxing scheme that can work for WP aside from sandboxing the whole thing. [0]
Any efficient sandboxing effort would have rely on changes that can only come from the PHP team themselves; given that they abandoned runkit, which would be the thing you needed, and have no obvious replacement, I doubt it is going to happen. (Runkit had a prototype sandbox to remove the globals/modify the execution environment of closures etc.)
The WP team could get rid of all the global variables, squish $_REQUEST, rearchitect so there was a flow of control through that made it harder to find things outside the scope of a closure, but without the ability to cut off a closure's access to core PHP functions and reflection, it's obviously on a hiding to nothing.
It would be quite disingenuous to suggest anything they did could offer protection, if PHP is not going to offer the underlying support, and it appears there is no hurry to do that.
Magento has a scheme where extensions rely on dependency injection, for example — it's difficult to do what you want to do unless you do it the right way. But the Magento scheme only offers any kind of "protection" for the well-behaved; all those PHP functions and tools are still there. It mainly exists to enforce code discipline, not security.
[0] except, maybe, WP plugins compiled to WASM. There are some people in the WP team who work with PHP in WASM (because the playground runs in it) but again, this would be pretty heinous. You could make these "sandboxed" plugins in a different language, I guess, to cut down on the need for a cross-compiled PHP interpreter in each sandbox, but it still involves juggling maybe a dozen WASM environments per page view.
I am fully done with WP (and PHP for new deployments), but:
1) no WP person says this.
2) Preventing plugins doing things with the privileges of their host is indeed hard, particularly since it's the point of plugins.
3) Your confidence in other platforms is rather misplaced, is it not? Both Rust and Python are arguably more dangerous in this context (community code).
WP is sold prepackaged and in an immediate usable form to normal people. You can't expect Jane the plumber to compile an NPM package, but she can set up a website with WordPress in an evening.
The combination of a capable tool marketed at people with minimal technical knowledge and very basic requirements that turn a clean slate into a business in minutes, makes for a platform optimised for quick profit over any serious security engineering.
This in turn also attracts people with minimal skills who don't know how to write secure code, because a simple WordPress plugin is one of the easiest ways to make money in software if you're starting with nothing.
If WordPress didn't exist, there'd be a different tool to fill the WP void. Most likely written in PHP as well (as that's the easiest option for shared hosting) but Python and other easy languages like that might be the host as well. Everything that makes these tools a security risk makes them incredibly attractive for building these platforms.
Now that AI is taking the jobs of the type of WordPress developers that lack the skills to build good software, we might soon see a huge improvement in WordPress security.
Python has a serious issue with supply chain attacks (.pth in site-packages) that gets glossed over.
Rust has a serious issue with supply chain attacks (compile-time execution) that also gets glossed over.
I am not defending WP. Like I say, I am done with it because even in expert hands PHP is more hassle than other choices, and I no longer have the energy to either police users or do their website admin (which are the only two choices for keeping WP safe when you're not the only user).
But WP is largely the tall poppy; supply chain issues are a massive problem, and I am far from convinced that any other content management system implemented in an interpreted language is going to be fundamentally more robust under the scale of hacker attention WP receives.
Also I don't know a CMS that manages autopatching, auto-updating and automatic severe security patching at WP's scale (or speed).
I will be happier with it out of my life, but for me it is the end of an entire class of CMS products at the same time.
In Python the risk from community packages is more on the developer side.
Site packages can install .pth scripts that run in front of every python interpreter run, regardless of whether the package is even in the current script's code path.
Developers here (for clarity I don't mean you) who snark at WP as if it is somehow uniquely bad forget that this vulnerability exists and is very real, as is the equivalent compile-time-code-execution vulnerability in Rust Crates.
(None of this excuses issues in WordPress, or PHP, but it is to some extent the tall poppy in the world of web dev supply chains)
Tall poppy implies it's doing security well and others are jealous of it for that reason. WordPress is famous for not doing security well, though. It's popular because of ease of use and because of how easy it is to install plugin as a completely non-technical user which is wholly unrelated to technical foundations.
> Tall poppy implies it's doing security well and others are jealous of it for that reason.
You're doing a very HN thing here: projecting your own meaning onto what I said, implying I meant it, so you can argue against your projected interpretation.
Since it was me that said it, I know what I meant: tall poppy situations are about the most recognisably, visibly highly successful people or products. It's usually at least partly about either their overexposure, or jealousy.
The difference may be in the surrounding technologies. Python is designed to run in POSIX systems with UNIX-like permissions AT LEAST. It's pretty trivial and common to have CICD pipelines where the packages are not installed on the dev machine, and if they are, they can be contained to their own user, or a docker container, etc...
While Wordpress, either by design or by convergence, is able to be run exclusively through a GUI, with both a control plane and user interface running through the same TCP/HTTP protocol, crazily.
I think the empirical delta in correlation of security issues between the two environments can be attributed to the amount of work and technical knowledge that the environments promise users can have, whereas Wordpress promises everything will be easy, that you can do WYSIWYG, (and when it can't, users install plugins that promise that too). Whereas python from the outset is a programming language, so it at least requires that users know and are comfortable writing and reading code.
The security protocols can on paper be the same, but these semantics massively impact the security of the ecosystem by changing the types of people that work with it.
I feel like even this is going to stop. Everyone with internet access and a few bucks to spare can point an abliterated high end cyber model (which are now even hosted across several APIs) to rediscover the attack.
https://github.com/WordPress/performance/issues/586
Under the hood, the fake prepared statement methods are basically just doing string concatenation and attempted sanitization. Basically living in mysql_real_escape_string land years after the old mysql_ functions were deprecated, when every sane language and application is letting the database driver handle parameters separately.
Of course, it all stems from the fact that there's a non-benevolent dictator for life who literally owns the entire project.
This! The real issue.
WP isn't responsible for what plugins do.
Quite impossible to add without reworking almost everything based on how Wordpress works in architecture level and how plugins are actually used in most of the time
There is no sandboxing scheme that can work for WP aside from sandboxing the whole thing. [0]
Any efficient sandboxing effort would have rely on changes that can only come from the PHP team themselves; given that they abandoned runkit, which would be the thing you needed, and have no obvious replacement, I doubt it is going to happen. (Runkit had a prototype sandbox to remove the globals/modify the execution environment of closures etc.)
The WP team could get rid of all the global variables, squish $_REQUEST, rearchitect so there was a flow of control through that made it harder to find things outside the scope of a closure, but without the ability to cut off a closure's access to core PHP functions and reflection, it's obviously on a hiding to nothing.
It would be quite disingenuous to suggest anything they did could offer protection, if PHP is not going to offer the underlying support, and it appears there is no hurry to do that.
Magento has a scheme where extensions rely on dependency injection, for example — it's difficult to do what you want to do unless you do it the right way. But the Magento scheme only offers any kind of "protection" for the well-behaved; all those PHP functions and tools are still there. It mainly exists to enforce code discipline, not security.
[0] except, maybe, WP plugins compiled to WASM. There are some people in the WP team who work with PHP in WASM (because the playground runs in it) but again, this would be pretty heinous. You could make these "sandboxed" plugins in a different language, I guess, to cut down on the need for a cross-compiled PHP interpreter in each sandbox, but it still involves juggling maybe a dozen WASM environments per page view.
1/5
1) no WP person says this.
2) Preventing plugins doing things with the privileges of their host is indeed hard, particularly since it's the point of plugins.
3) Your confidence in other platforms is rather misplaced, is it not? Both Rust and Python are arguably more dangerous in this context (community code).
1. npm has a problem with supply chain attacks
2. WP has a problem where popular plugins have major vulnerabilities
It is odd to me that other platforms have far fewer of those problems cateris paribus.
The combination of a capable tool marketed at people with minimal technical knowledge and very basic requirements that turn a clean slate into a business in minutes, makes for a platform optimised for quick profit over any serious security engineering.
This in turn also attracts people with minimal skills who don't know how to write secure code, because a simple WordPress plugin is one of the easiest ways to make money in software if you're starting with nothing.
If WordPress didn't exist, there'd be a different tool to fill the WP void. Most likely written in PHP as well (as that's the easiest option for shared hosting) but Python and other easy languages like that might be the host as well. Everything that makes these tools a security risk makes them incredibly attractive for building these platforms.
Now that AI is taking the jobs of the type of WordPress developers that lack the skills to build good software, we might soon see a huge improvement in WordPress security.
Rust has a serious issue with supply chain attacks (compile-time execution) that also gets glossed over.
I am not defending WP. Like I say, I am done with it because even in expert hands PHP is more hassle than other choices, and I no longer have the energy to either police users or do their website admin (which are the only two choices for keeping WP safe when you're not the only user).
But WP is largely the tall poppy; supply chain issues are a massive problem, and I am far from convinced that any other content management system implemented in an interpreted language is going to be fundamentally more robust under the scale of hacker attention WP receives.
Also I don't know a CMS that manages autopatching, auto-updating and automatic severe security patching at WP's scale (or speed).
I will be happier with it out of my life, but for me it is the end of an entire class of CMS products at the same time.
Site packages can install .pth scripts that run in front of every python interpreter run, regardless of whether the package is even in the current script's code path.
Developers here (for clarity I don't mean you) who snark at WP as if it is somehow uniquely bad forget that this vulnerability exists and is very real, as is the equivalent compile-time-code-execution vulnerability in Rust Crates.
(None of this excuses issues in WordPress, or PHP, but it is to some extent the tall poppy in the world of web dev supply chains)
You're doing a very HN thing here: projecting your own meaning onto what I said, implying I meant it, so you can argue against your projected interpretation.
Since it was me that said it, I know what I meant: tall poppy situations are about the most recognisably, visibly highly successful people or products. It's usually at least partly about either their overexposure, or jealousy.
Wordpress is ubiquitous and recognisable.
That is all I meant. Argue against that.
While Wordpress, either by design or by convergence, is able to be run exclusively through a GUI, with both a control plane and user interface running through the same TCP/HTTP protocol, crazily.
I think the empirical delta in correlation of security issues between the two environments can be attributed to the amount of work and technical knowledge that the environments promise users can have, whereas Wordpress promises everything will be easy, that you can do WYSIWYG, (and when it can't, users install plugins that promise that too). Whereas python from the outset is a programming language, so it at least requires that users know and are comfortable writing and reading code.
The security protocols can on paper be the same, but these semantics massively impact the security of the ecosystem by changing the types of people that work with it.