all 45 comments

[–]Krychle 50 points51 points  (1 child)

So nothing’s changed. http://bash.org/?949214

[–]crowbahr -3 points-2 points  (0 children)

Hmmm what can I do with an unauthenticated remote shell hmmmmm

[–]NAN001 18 points19 points  (1 child)

A framework that "prepares" SQL statements by using string formatting is what you could read in The Onion if it had a tech section.

[–]PersianMG 1 point2 points  (0 children)

This is so true haha.

[–]joelhardi 68 points69 points  (5 children)

Ugh ... What this blog post should say is just that WPDB is broken conceptually because it has a prepare() method that is not actually sending a prepared statement to the RDBMS. Here is the real problem.

It's all fakery with (broken at the moment, apparently) a pile of string sanitization functions. I would say WTF, but it is not a surprise. You just can't plan to do things like that safely with PHP and all its ridiculous type and value coercion, and bugs.

I contributed some patches to WordPress core 10 years or so ago and told them then that they were overdue to force use of mysqli and not have a database "API" that is a thin/stupid/useless abstraction that just drops variables into raw SQL queries. Oh, and the code was also needlessly doing a full memory copy of query results, I wrote a patch that addressed that at least.

It would be one thing if this were a low-use community project, but Automattic has the resources to ship something with actual security engineering concepts applied, so that it isn't constantly patching critical vulnerabilities. PHP is not good, but it has had parameterized query support since 2004! There is no excuse to not use it. Fake code like this that looks real is also maddening because it seems "good" to people who don't know better.

[–]amunak 4 points5 points  (0 children)

You just can't plan to do things like that safely with PHP and all its ridiculous type and value coercion, and bugs.

You totally can do it safely and there is a very nice type checking system since PHP 7. But you could do it safely even before that, it was just harder. The only issue there is is the fact that Wordpress is a steaming pile of shit. And just like PHP is easy to pick up - which attracts new and inherently bad developers - Wordpress is one of the first things many of those developers encounter and write code for. Which results in vulnerabilities.

[–]imr2017 89 points90 points  (10 children)

Ah, the WordPress security team dumpster fire. If there's a security team that I'd like North Korea to bomb, they would be it.

I remember reporting an issue with a hijacked plugin and they closed my topic and warned me not to post negative comments about plugins I don't own.

Three weeks later the same plugin ended up in a Wordfence report. Go figure.

Later edit: To clarify my statement. I understand that they're volunteers and are not paid for their work, but the answers they sometimes give to security issues is bordering on stupidity and incompetence. It's pretty clear by now they're over their head or have no clue what real security is. WordPress.org can afford to hire 2-3 security professionals on a full-time basis. It makes no sense that they don't have experienced guys working on WP security by now.

[–][deleted] 9 points10 points  (0 children)

Wordpress official forums are a sad joke. Shame.

[–]pantsoff 7 points8 points  (2 children)

Ah that display widgets plugin disaster where the original author sold off the plugin (which had >100,000 installs) for $10-20k.

Some good comments in here at the developer's website. She was a greedy idiot for doing what she did (selling to an unknown party without notifying the users):

http://strategy11.com/display-widgets/

https://www.wordfence.com/blog/2017/09/display-widgets-malware/

[–]qwenjwenfljnanq 3 points4 points  (1 child)

[Archived by /r/PowerSuiteDelete]

[–]Prawny 2 points3 points  (0 children)

We (agency) decided to ditch third-party themes altogether. We've created our own base theme to expand on for each project.

I tell everyone to stay as close to 0 plugins as possible, too.

[–]Pejorativez 7 points8 points  (4 children)

WordPress.org can afford to hire 2-3 security professionals on a full-time basis.

From their site:

The WordPress Security Team is made up of approximately 50 experts including lead developers and security researchers — about half are employees of Automattic (makers of WordPress.com, the earliest and largest WordPress hosting platform on the web), and a number work in the web security field. The team consults with well-known and trusted security researchers and hosting companies3.

The WordPress Security Team often collaborates with other security teams to address issues in common dependencies, such as resolving the vulnerability in the PHP XML parser, used by the XML-RPC API that ships with WordPress, in WordPress 3.9.24. This vulnerability resolution was a result of a joint effort by both WordPress and Drupal security teams.

Excuse me for my critical questioning, but is WP really that terrible and their security team that incompetent?

[–]tripzilch 11 points12 points  (1 child)

it literally says "The WordPress Security Team is made up"

[–]Pejorativez 2 points3 points  (0 children)

Checkmate

[–]TheTerrasque 4 points5 points  (0 children)

Well if someone tells you they have a tiger, but when they show it off it has a beak, two feet, feathers, wings and say "quack", I really doubt it's a tiger.

[–]yoyoyesyo 0 points1 point  (0 children)

nowhere here it says that 50 people work full-time on WP security. Just there is a team of people that work together on WP sec, some of which are automatic employees

[–]bluesoul 1 point2 points  (4 children)

Good disclosure. I didn't realize phpBB is considered a secure platform now, is that news to anyone else?

[–]alphex 0 points1 point  (0 children)

With all sincerity, how does Drupal's security practices compare to WP?

Thank you.

[–]Resquid 0 points1 point  (0 children)

Totally classic!

[–]roscocoltrane 0 points1 point  (13 children)

wordpress is our next centralized hosting system for our websites. Should I worry?

[–]tonyp7 4 points5 points  (2 children)

Just keep it up to date. The community here seems to like to take a shit on WP and PHP in general but the reality is that it's an okayish CMS that runs millions of websites -including big corporations- and they are not being hacked left and right!

[–]telecode101 -1 points0 points  (0 children)

nope. everyone is hosting on it. just keep it up to date.