Wordpress has had a catastrophic history of insecure code, based on a number of basic design flaws:
* Reliance on ad-hoc hand-coded SQL.
* A system that registers psuedonymous Internet commenters in the same user table as Wordpress administrators.
* Mishandling of internationalization.
Yes, Wordpress is also the most popular blogging platform, and yes, it's also much more dynamic than its competitors, but phpBB and vBulletin seem to have had better track records than Wordpress have. It's just not very secure.
Basically, Wordpress is written in PHP and this is the root of all evil.
Let's look at the roots of PHP: it was never designed as a programming language, it was a tiny script language used to create Rasmus Lerdorf's website. Thus, it has a lot of oddities like the === operaor.
Do you know why it it is there? Because they wrote a broken instr() wrapper and messed up the error handling. And instead of doing one thing right, they added another obfuscation layer. Great design.
Then, PHP was traditionally used by webdesigners, not programmers. This lead to tons of bad code and bad practices. It is not that you cannot write elegant code in PHP, but there is so much more bad code around that it is hard to find the good code.
Real hackers can appreciate every damn language out there. If it weren't for Basic in the early 80s, I wouldn't be programming now.
PHP is a wonderful gateway language for a generation of web programmers. It is installed on every webserver and is always ready to rock-n-roll. No other language has achieved that level of ubiquity.
No. We can have a productive discussion about whether a language and its frameworks are conducive to secure coding without it devolving into a language war. We're adults here, and there are more than just stylistic differences between PHP and its competitors.
Don't get me wrong, I like using Python. But I prefer small compromises addressing prior mistakes, allowing for backwards compatibility, over a full rewrite.
I think we're a few years past the arguments you make against PHP. If you want to be trendy, you should rail against the people running Internals (namespace separator).
I think I could credibly dispute the record here, but I think we can also probably just agree that today, phpBB is hobbled by fewer design errors and better hygiene than Wordpress. Wordpress is just a scary glob of PHP code.
Not just one. Derek Sivers: "I spent two years trying to make Rails do something it wasn’t meant to do, then realized my old abandoned language (PHP, in my case) would do just fine if approached with my new Rails-gained wisdom."
"Wordpress was probably the only company that has migrated from Ruby to PHP"
This is just childish. Different tools and languages have different uses. End of story. Ruby isn't better than PHP, PHP isn't better than Ruby - That's like saying a screwdriver is better than a saw - It depends what you're trying to accomplish with the tool.
Most of the blog exploits on the web (including the one in the article) seem to be focused on WordPress. Are there are a large number of people exploiting vulnerabilities in other blogging platforms, like Movable Type?
First, I assume this is for the same reason that most viruses are for Windows -- WordPress is one of the most common species in the ecosystem.
Also, If I understand the architecture of Movable Type correctly, it renders much of the site into static pages. I would expect that this tends to reduce the number of points where vulnerabilities would be possible, at least as far as points where it might be exploited via causing it to execute with malicious parameters via an HTTP request. i.e. In Wordpress, every page you load is the result of the execution of some PHP scripts, while in a blog that is rendered to a bunch of static files, it's conceivable that the only thing that unauthenticated users can mess with is the comment system.
This happened to one of my old wordpress blogs, I had to delete the whole thing. That's why I just use blogspot through Google now, it's not worth the time to keep track of all the updates and stuff.
* Reliance on ad-hoc hand-coded SQL.
* A system that registers psuedonymous Internet commenters in the same user table as Wordpress administrators.
* Mishandling of internationalization.
Yes, Wordpress is also the most popular blogging platform, and yes, it's also much more dynamic than its competitors, but phpBB and vBulletin seem to have had better track records than Wordpress have. It's just not very secure.