by hluska · 5y ago · 0 comments
Here’s a report on 0.8.4.8:
https://www.acunetix.com/vulnerabilities/web/wordpress-plugi...
Here’s a report on 0.8.7.4:
https://www.acunetix.com/vulnerabilities/web/wordpress-plugi...
I could go on (all night) but I trust you all get the point. I have two questions.
First, at what point can we say “Emre, you’re really bad at writing code. There are lots of other jobs. Find another.”
Second and more importantly for the future of the web, how can we as an industry protect innocent users from projects like this?? This monstrosity has over 1 million active installs and the chuckle head doesn’t have a fucking clue how to write SQL.
> The authors were initially reluctant to acknowledge the CSRF issue, but after obtaining a second opinion from the WordPress plugin team, they fixed it in version 0.9.5.
In what world do you get notified there's a possibility for SQL injection in your code, and then not immediately fix it? This statement shows such arrogance, and little regard for the security of users.
The fundamental problem here is people and companies have got used to the idea they can get huge amounts of software for free, and expect it to be high quality and well maintained.
Personally, I wish programming was treated as "proper engineering", in the same way as bridge building -- there are standards, and you get in serious trouble if you build a bridge, it falls down, and it was clearly your fault.
Of course, people should still be allowed to "build a bridge in their backyard", they just have to put clear warning signs on it, and if a company uses an "illegal bridge", it's their fault when it falls down.
We might still get there, we are still in the early days, similar to when there were no building standards and they fell down / burnt down regularly. After there were enough major disasters, people started demanding better.
Qualitative systems like programming languages have an immeasurable amount of variation and complexity and are extremely difficult to monitor and enforce standards around.
What’s required is a better stack that is less error prone. If programmers can’t make the mistakes in the first place, they won’t happen.
I'm missing WordPress responsability here. The amount of crap listed in the plugin store without any standar needs to be stopped.
It is your responsibility to verify your supply chain. If you can't do that, maybe you shouldn't operate a website that collects user information.
At least before cloud you would have to set up bare metal services which gave people an idea of what they were actually assembling. The fancy control panels and one click installs have created a group of overly entitled administrators who can't admin and won't take any responsibility for running shit, misconfigured, off the shelf services from companies they didn't even vet.
I'd say that can pay for a proper developer or a security audit every once in a while.
static::$id = esc_sql($_GET["post"]);
And yeah, esc_sql() don't work in all cases (see here : https://developer.wordpress.org/reference/functions/esc_sql/...) and in this case it's vulnerable.
But the author did try to prevent SQL injections, and misuse of functions happens sometime ¯\_(ツ)_/¯. It's not that trivial when reading the code. A Stored XSS Via CSRF is also far from trivial.
In conclusion, we all write bugs. Some are tricky. Don't be so angry !
Why in the hell are people still injecting strings into queries? In 2021??!
[1] https://developer.wordpress.org/reference/classes/wpdb/prepa...
Pro tip: If you have trouble measuring the effect of your caching plugin, it probably means its effect is neglegible.
If you really feel you need a caching plugin, WP Super Cache is written by the company that also writes Wordpress. I'd consider that the most trustworthy.
A properly set up caching plugin basically saves the pages as plain HTML and serve them with mod_rewrite instead of invoking PHP every time. The speed difference for an individual page load might not be that much for a properly optimized site, but the overall resource usage will be much lower.
Is that what you believe or do you have benchmark results?
Source: hoster
My first question to you would be "Why wouldn't you bypass PHP and MySQL if you can?".
For some really basic site sure, you can go without caching, but for any reasonable degree of complexity not using caching is a foolish waste of hardware and end-user patience since we can be talking TTFB of 100-200 ms vs up to seconds.
The closest thing you'll get to serverless wordpress in one click. There is no wordpress caching plug-in I am aware of that will get you anywhere near.
Edit: I've also used WP Super Cache and W3 Total Cache quite extensively, both both of these have on some sites had a tendency to randomly clear the cache and I've never managed to figure out why. Cache Enabler has never done this.