Slashdot Mirror


Attacks On WordPress Sites Intensify As Hackers Deface Over 1.5 Million Pages (bleepingcomputer.com)

An anonymous reader writes: "Attacks on WordPress sites using a vulnerability in the REST API, patched in WordPress version 4.7.2, have intensified over the past two days, as attackers have now defaced over 1.5 million pages, spread across 39,000 unique domains," reports BleepingComputer. "Initial attacks using the WordPress REST API flaw were reported on Monday by web security firm Sucuri, who said four groups of attackers defaced over 67,000 pages. The number grew to over 100,000 pages the next day, but according to a report from fellow web security firm WordFence, these numbers have skyrocketed today to over 1.5 million pages, as there are now 20 hacking groups involved in a defacement turf war." Making matters worse, over the weekend Google's Search Console service, formerly known as Google Webmaster, was sending out security alerts to people it shouldn't. Google attempted to send security alerts to all WordPress 4.7.0 and 4.7.1 website owners (vulnerable to the REST API flaw), but some emails reached WordPress 4.7.2 owners. Some of which misinterpreted the email and panicked, fearing their site might lose search engine ranking.

69 of 119 comments (clear)

  1. The reason I hate WordPress is PHP. by Larsen+E+Whipsnade · · Score: 4, Insightful

    I could harsh on PHP until the cows come home, but that would be annoying. So I'll just say that this sort of security problem shows that it's impractical to write anything secure in PHP. Why? Mainly because it adds a layer of complexity atop compiled binary, and it adds source code access once a hacker has got past a certain level, and... oh, it's just all kinds of insecure.

    Just why did PHP become so popular, anyway? I really don't see the attraction. Now WordPress would be a wonderful thing, if only they'd ditch the PHP. It would be a little harder to customize and extend, but far from impossible. Worst case, we could supply a scripting language ONLY for custom extensions. Basically a macro language. Python's embeddable.

    (No, I don't consider a widely used API to be a custom extension. That's part of the core.)

    More opinion: in a production system, scripting languages and macros should be only for custom extensions, and never for core code. There should never be scripts BEHIND an API. If WordPress were written in a compiled language and run as a binary, it would be less easy to hack. But not C. Those damn pointer arithmetic exploits...

    1. Re:The reason I hate WordPress is PHP. by rudy_wayne · · Score: 3, Insightful

      Everything you said is more or less true, but, the bigger problem is that WordPress and many other software packages are written by people who are just plain incompetent and/or stupid. They either don't give two shits about security or are to stupid to figure it out.

    2. Re:The reason I hate WordPress is PHP. by Anonymous Coward · · Score: 2, Funny

      "or are to stupid to figure it out"

      It's 2. You want to spell it "2 stoopud".

    3. Re:The reason I hate WordPress is PHP. by marcansoft · · Score: 5, Insightful

      The flaw was specifically made possible by PHP's eagerness to convert malformed strings to best-guess integers instead of raising an error like any sane programming language. You didn't read TFA, did you?

      Parent is mostly correct, except where he lumps together all "scripting" languages. This isn't a problem with "scripting" languages, it's a problem with languages like PHP that were designed by people who had no idea what they were doing. Worse, PHP is designed to be deployed in a way that encourages mistakes (PHP files directly in the webroot). PHP security is a game of whack-a-mole where if you forget to whack all the moles in one of your scripts, your site is toast. This wouldn't have happened with a sane scripting language, like Python.


      $ php7.1 -r 'echo (int) "123test";'
      123
      $ python3.5 -c 'print(int("123test"))'
      Traceback (most recent call last):
          File "", line 1, in
      ValueError: invalid literal for int() with base 10: '123test'

    4. Re:The reason I hate WordPress is PHP. by Anonymous Coward · · Score: 1

      > Just why did PHP become so popular, anyway? I really don't see the attraction.

      You've heard the expression, "good, fast, cheap - pick two"?

      PHP is fast and cheap.

    5. Re:The reason I hate WordPress is PHP. by sjames · · Score: 1

      Not entirely a troll. Some languages make it easier to have terrible consequences for a minor error than others. Some are more likely to complain and error out when something that looks mistake like happens.

      In this case, deciding that int('123test') = 123

    6. Re:The reason I hate WordPress is PHP. by gtall · · Score: 2

      I don't agree. A good language keeps you from shooting your foot off even if you are inadvertently aiming at it. How many of PHP arcane rules must a programmer keep in mind? Must s/he constantly use PHP to keep the rules in the head so as not to trip over them. A good example of how to do it right is Haskell. The typing system is a bitch but you won't get away with any inadvertent type casts.

    7. Re:The reason I hate WordPress is PHP. by Anonymous Coward · · Score: 1

      joomla is just as fucking broken and riddled with security holes as wordpress is.

    8. Re:The reason I hate WordPress is PHP. by marcansoft · · Score: 1

      That premise is nonsense. By your definition, there is no stupid design, as long as it is accurately documented.

      Just because it's documented doesn't make it not stupid. There is such a thing as the principle of least surprise. PHP almost seems to try to be as surprising as possible, in all the wrong ways.

    9. Re:The reason I hate WordPress is PHP. by marcansoft · · Score: 1

      Oh, I agree that JavaScript is full of WTFs. Not nearly as many as PHP, but plenty going around. I wouldn't write a web backend in node.js either, even though many people seem to think that's a good idea.

      Joomla is just as bad as WordPress. I just spend last weekend cleaning up a compromised server that was running an outdated Joomla version managed by other people. Ended up sandboxing it in a VM to make sure that if it gets pwned again it doesn't start sending spam nor has access to any sensitive information.

    10. Re:The reason I hate WordPress is PHP. by marcansoft · · Score: 2

      PHP was slow as molasses until recently, and cleaning up compromised servers after you get pwned isn't cheap, nor is maintaining a legacy code-rotting PHP codebase, which is what PHP encourages.

      PHP became popular because it was easy back when the dynamic web was getting started and people just wanted to write quick hacks. By the time people realized it was a terrible idea we had legions of PHP coders who thought they knew what they were doing, and tons of PHP frameworks evolving from toys to something that was trying to be serious, with the language following a similar path. But the foundation was rotten to the core, and as much as they've tried, nobody has yet managed to fix PHP, nor is it really possible without reinventing, effectively, a whole new language. Even deprecating completely batshit insane ideas like magic_quotes_gpc has taken years of effort.

      Meanwhile Python 2 was pretty good, way better than PHP ever was (and probably ever will be), but even then the Python community knew that some things needed to be torn up and redone properly, and thus we got Python 3. Things work differently when the people designing and maintaining a language actually know what they're doing. The Python 2 to 3 transition has been long, but worth it in the long term.

    11. Re:The reason I hate WordPress is PHP. by marcansoft · · Score: 1

      Brainfuck is clearly documented. Heck, it's so simple you can explain it in about two sentences. It is trivial to write a bug-free Brainfuck interpreter. You can even compile it to C.

      Does that make Brainfuck a good language to write a website in? No, no it doesn't.

    12. Re:The reason I hate WordPress is PHP. by dotancohen · · Score: 2

      Like everything if you RTFM it works as described. If you are coding PHP you would know this behaviour.

      I disagree that most or even many PHP programmers know this issue. A few months ago I demo'ed an exploit in code that a coworker wrote which had the same flaw, this time in comparing MD5 hashes. He had been using PHP for all of his professional career and had no idea how PHP compares strings with leading digits.

      Of course, I only knew about the issue because of a similar bug that I wrote, sometime a bit over a decade ago. At that time I had been using PHP for over five years.

      So the maxim "know your tools" still stands, but string comparison in PHP _is_ broken in subtle, dangerous ways that most devs will never (knowingly) encounter. I've never seen code that _relies_ on this behaviour, I would love to see it fixed in a major version release. Too bad PHP 7 still carries this flaw.

      --
      It is dangerous to be right when the government is wrong.
    13. Re:The reason I hate WordPress is PHP. by McD · · Score: 1

      IIRC, early php inherited some features from Perl, including logic to convert scalars to numbers I'm guessing.

      Perl has the same subtle problem, but at least you'll hear about it if you follow best practice and enable warnings:

      $ perl -lwe 'print(int("123test"))'
      Argument "123test" isn't numeric in int at -e line 1.
      123

      --
      "Given the pace of technology, I propose we leave math to the machines and go play outside." -- Calvin
    14. Re:The reason I hate WordPress is PHP. by Wootery · · Score: 1

      That's stupid.

      Look at the way Java/C# make it impossible to dereference null or exceed array bounds. You can say C programmers are just being clumsy, but look at the consequences: buffer-overrun issues are still a continuing problem... in C programs. Not in Java. Your blame game gets us nowhere. Engineering solutions do.

      You really have to give Java/C# some credit: their design categorically eliminates those categories of bugs.

      (And yes, they pay a performance cost for this.)

    15. Re:The reason I hate WordPress is PHP. by parkinglot777 · · Score: 1

      PHP was slow as molasses until recently, and cleaning up compromised servers after you get pwned isn't cheap, nor is maintaining a legacy code-rotting PHP codebase, which is what PHP encourages.

      The AC is actually correct. The term good-fast-cheap is usually referred to Project management triangle which is not the same as what you are thinking. It does not really apply to maintenance part. Though, It partially applies to running speed (quality of the product).

    16. Re:The reason I hate WordPress is PHP. by sjames · · Score: 1

      It is clearly documented that putting your hand in a spinning saw blade will cause severe injury, but we still have a blade guard.

    17. Re:The reason I hate WordPress is PHP. by marcansoft · · Score: 1

      String comparison in PHP is broken between two strings. Nothing to do with types. You can't compare two strings with ==, it doesn't work properly (it works most of the time and becomes a security hole when you least expect it). Since clearly you think PHP is the bees' knees and documentation is everything, of course you knew this, right?

      Now tell me in what universe it is reasonable for the == operator to be unable to compare two strings correctly.

    18. Re:The reason I hate WordPress is PHP. by marcansoft · · Score: 1

      Except Python is 4 years older than PHP.

  2. Which is why they use PHP? by Larsen+E+Whipsnade · · Score: 2

    Couldn't resist.

    I tried WordPress for a while, and I tried some PHP coding. I'm a tad bitter.

  3. Re:Ugh by Anonymous Coward · · Score: 1

    Don't worry, a fully autonomous self driving car is just a software problem.

  4. Re:Great. by Anonymous Coward · · Score: 1

    Register it with Google Search Console... the alerts are quite helpful, even if they're somewhat late sometimes

  5. Re:Wordpress the first open source failure... it i by Narcocide · · Score: 2

    Nope. They won't blame their precious 5$ web hosts. Instead, for some reason I still struggle to grasp, they will instead blame the web coders they didn't hire, who warned them not to use WordPress in the first place, as well as "all versions of PHP itself," regardless of host configuration.

  6. Plea for simplification: static HTML by xororand · · Score: 5, Insightful

    It is absurd how much computing power is wasted on dynamically generating what is effectively static content, like blogs.
    A simple blog should not require an SQL database and complex software stacks that are executed whenever someone visits the site.

    Instead, consider using a static website generator like Pelican, or one of the many alternatives.

    Write articles and blog posts in a simple, human-readable markup language such as Markdown or ReStructuredText.
    Manage your documents in git. Run the generator to recreate the HTML and update Atom/RSS feeds.
    The resulting website is blazing fast and can be hosted on dirt cheap servers.

    More simplicity on the Internet please.

    1. Re:Plea for simplification: static HTML by Anonymous Coward · · Score: 1

      Simplicity on the internet only works for intelligent people who understand how the internet works. Stupid people need gigabytes of hand-holding frameworks to accomplish anything.

      Ironically, git is too complex for actual gits to use.

    2. Re:Plea for simplification: static HTML by marcansoft · · Score: 3, Insightful

      This.

      The irony is that any WordPress site getting any reasonable amount of traffic is already using WP-Super-Cache... which generates static HTML pages for public content to be served directly from the web server. So they get the worst of both worlds: caching issues and a dynamic backend that is still just as susceptible to exploits as without the cache.

    3. Re:Plea for simplification: static HTML by thegarbz · · Score: 4, Insightful

      You say this as someone who knows what they are doing. Markdown? Restructured text? Git? You've just gone beyond the expertise of 99% of blog writers out there.

      Wordpress's killer feature is not that it dynamically renders content, its that it allows a complete idiot to dynamically generate it.

      Remember the alternative? Remember people typing word documents and saving them as HTML files? If you don't provide a dead simple online WYSIWYG editor with instant publish features and without the requirement to install software on a machine, any proposal you come up with is DOA.

    4. Re:Plea for simplification: static HTML by aaarrrgggh · · Score: 1

      Yeah... that's what I told my marketing manager. We used to update our 10 web pages once or twice a year, and now it is a $30k annual expenditure with about the same attributable revenue. Joys of WordPress.

      But it does look prettier...

    5. Re:Plea for simplification: static HTML by Voyager529 · · Score: 1

      It is absurd how much computing power is wasted on dynamically generating what is effectively static content, like blogs.
      A simple blog should not require an SQL database and complex software stacks that are executed whenever someone visits the site.

      I absolutely agree with this...in theory.

      Instead, consider using a static website generator like Pelican, or one of the many alternatives.

      Okay, let's do that. Hrmm...not in Softaculous, or the other one-click install options at Godaddy or Hostgator. That's annoying, but it's only one time, so let's check the website...Hrmmm...no 'download' area from the front page...documentation I guess? Great! They have an install instructions area! ...that is full of CLI installation commands and doesn't provide a download link at all for shared hosting environments. Also, while PHP support is near-universal on shared hosting, is Python? Well, we'll assume for a minute that it is and go from there.
      Okay, let's head over to the section about installing themes...oh look! *more* CLI stuff! Yes, Pelican assumes that users want to use a CLI to decide how their website appears. When I did look at their themes area, I saw a Github listing. Github. No screenshots, no galleries. A list of files and folders.
      Now, writing a blog post should be simple, right? Oh...there's a markdown language I have to use, a series of inline commands for formatting and links and content embedding requires a specific file system? Wait...this was addressed in your statement earlier...

      Write articles and blog posts in a simple, human-readable markup language such as Markdown or ReStructuredText.
      Manage your documents in git. Run the generator to recreate the HTML and update Atom/RSS feeds.
      The resulting website is blazing fast and can be hosted on dirt cheap servers.

      More simplicity on the Internet please.

      I am pretty sure that you have a different concept of "simple" than 99.9999% of bloggers out there. From a technical level and the amount of data ultimately transferred, no question whatsoever. For someone who can run circles around you with respect to gardening or keeping bees or fashion or a thousand other topics that don't involve software development, the usage here is the absolute furthest thing from "simple". Articles and blog posts are written in English, or whatever the native tongue of the author is. People writing blogs are writing down thoughts and observations for humans, by humans, using languages that facilitate communications between humans. Only on Slashdot does that need to be specified.

      Let's compare this with the Wordpress experience:

      Wordpress: One-click installation from basically every major shared web hosting provider on the market. Once installed, enter the username and password to the backend. Click 'themes', then 'get themes'. Browse around for hours, finding one that looks the prettiest. Customize it using point-and-click options that are reflected instantly. Many themes automatically handle mobile layouts with zero user intervention. Depending on needs, add a few helpful plug-ins. Don't know what to get? Ask Aunt Google, and there will be no shortage of recommendations! Want to write a blog post? Click add-> post, and you've got a simple-to-use box to type in that automatically saves drafts, looks and works pretty similar to Microsoft Word, has a list of categories on the right for easy filing, and a big "publish" button for when you're done. Did I mention there's a mobile app for real-time posting or that Pelican doesn't seem to have a comments section at all, or that literally everything I've described here has required ZERO command line usage or PHP coding and are all stock functions with zero plugins or extensions required?

      Slashdot can piss on Wordpress all it wants, and yes, security/hardening plugins are the first thin

  7. Re:Great. by marcansoft · · Score: 4, Interesting

    The only secure way to use WordPress is as a static site generator, where the live version is deployed with no dynamic functionality and the administration backend is secured by a layer above WordPress (e.g. HTTP BASIC authentication).

    WordPress isn't particularly terrible code, but it is written in a particularly terrible programming language where it's practically impossible to write something secure because things are insecure-by-default and you're expected to defend against all the gotchas explicitly.

  8. I almost believed in WordPress by NaCh0 · · Score: 5, Interesting

    I subcontract with marketing companies so I work with some aspect of WordPress development on a daily basis. The standard groupthink from WordPress evangelists is that the security problems are behind us -- that WordPress core hasn't had a serious vulnerability in years, core has a review process, blame your out of date installations and inexperienced plugin developers.

    For those not in the know, the REST API is something new to wordpress. Developers could get early access thru a plugin, but the API now comes included with WP4.7. There is so much buzz and excitement, even among wordpress people who have no idea what REST really is, few people questioned it because this meant WordPress can now take over the world.

    I for one questioned it. When I saw REST enabled in 4.7 without a control to disable it my literal reaction was "Are you FUCKING kidding me???" I have experience in security. I understand attack surfaces. I have seen what a fiasco xmlrpc.php attacks are to wordpress. And these idiots open REST APIs to the internet by default? Jesus fucking Christ, I really don't think Matt Mullenweg or any of the other idiots running the WordPress show have any ability to learn from history.

    Sadly, there is no evidence of other CMS's surpassing WP in popularity. You should get used to WordPress continuing to be the sendmail of php apps.

    1. Re:I almost believed in WordPress by phantomfive · · Score: 2

      The problem here is it wasn't deployed in Docker. With a real database like Oracle. The whole thing should be run in the browser to give it an extra layer of containerized security.

      --
      "First they came for the slanderers and i said nothing."
    2. Re:I almost believed in WordPress by drinkypoo · · Score: 1

      Drupal is written in PHP and features a REST API yet for "some" reason is compromised something like an order of magnitude less than WP. Oddly, when I was choosing between them, the WP install failed with a cryptic error and the Drupal install worked perfectly. Saved by fate!

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    3. Re:I almost believed in WordPress by trawg · · Score: 2

      I subcontract with marketing companies so I work with some aspect of WordPress development on a daily basis.

      Doing agency work in the last few years I know my colleagues struggled with the process of managing WordPress within source control. If we built a website for someone based in WordPress we'd deploy it - but then if the customer upgraded it or installed a theme or something it would instantly be out of wack with what was in source control.

      Managing the site in source control from there was a bit of a pain as you'd have to download the new version, add new files, commit differences, etc - every time there was a WordPress update.

      I would not be surprised if a lot of the compromised sites were in this situation - deployed by agencies who said to their clients "don't worry, we'll keep it up-to-date for you" and deployed from source control without thinking about how to maintain it, and then giving up when they realised it meant regular updates to their dev copy - thus losing all the security advantages of WP's self-updating feature. Or giving up when their clients modified their own site extensively thus making it a real nightmare to merge.

      I'm sure there are many good ways of managing this process. WordPress being the "cheap" alternative means a lot of people are getting what they pay for.

    4. Re:I almost believed in WordPress by hierofalcon · · Score: 1

      Drupal does have it's advantages and security is one of them. It's biggest disadvantage is that with every major release the core developers change large chunks of API so any add-on you are using has to be upgraded to a stable condition before you as a website maintainer or developer can move forward. After X major rewrites of their plugin because the Drupal developers decided method Y was now the best way to go, many plugin developers give up - understandably - leaving you with no upgrade path if you were using a particular plugin. There is a lot of debate as to the feature load in core - KISS and make everyone rely on plugin modules or actually make core useful. Drupal would be a really, really good choice if they'd just stop re-inventing the API with each release or make an automated conversion tool that would work with all changes and plugins to at least make a stable working version of the plugin on the day of release. It might be able to be done a better way in the new wonder method Y, but at least it would work.

    5. Re:I almost believed in WordPress by LifesABeach · · Score: 1

      "With a real database like Oracle" That was funny.

    6. Re:I almost believed in WordPress by hierofalcon · · Score: 1

      Kudos to you. I did a quick survey of most of the checked modules in our site outside core. Drupal 8.0.0 was released November 19, 2015 according to Google and close to 60% of the modules we have in use have no D8 equivalent. A few have something at some stage of development, but nothing at even a alpha or beta release level. Some that do have D8 equivalents are only at alpha or beta stages.

      The core developers do Drupal. The plugin developers generally work on drupal modules as a sideline or fun project. I realize that relying on the second tier has this associated cost, but core Drupal without some of the addons really doesn't work in most environments. So making the upgrade easier would be a benefit to everyone (even if the automated solution wasn't optimal). The 5 to 6 and 6 to 7 paths also had very long delays for plugins, so this isn't new. Some were abandoned, sometimes with a different module suggested that may or may not handle the database the same.

      Security in core is good. Security in the whole Drupal eco-system has the same risks that WP has when the learning curve takes a new bump every couple of years for people not involved in core development.

    7. Re:I almost believed in WordPress by phantomfive · · Score: 1

      So is thinking that Docker will fix anything with security.

      --
      "First they came for the slanderers and i said nothing."
    8. Re:I almost believed in WordPress by NaCh0 · · Score: 1

      You should only put the theme and any plugins you wrote under source control. There's no reason to track the parts out of your control.

      It also used to be the case that if the auto-updater detected source control on core, it would disable auto-updates.(manual updates initiated from the dashboard still can happen)

    9. Re:I almost believed in WordPress by LifesABeach · · Score: 1

      So you're saying that there is a gun pointed at your head and you must decide weather you use WordPress or suffer for your thoughts? Sad.

    10. Re:I almost believed in WordPress by phantomfive · · Score: 1

      lol I have no idea what you are saying there. The weather is nice, though.

      --
      "First they came for the slanderers and i said nothing."
  9. Dynamic content + shoddy plugins + monoculture by damaki · · Score: 3, Insightful

    And web agencies. You got a genuine recipe for disaster. But that's so much fun, all those cheap websites (my company included) which get defaced and hacked to death on a monthly basis, as it cannot be updated timely because they to need every single exotic and never updated plugins. I had to build a presentational website, 15 years ago, and you know what? I did use a static content generator, which I coded myself as it was dead simple! What's is stupid is that as many people told in replies, most of these sites actually needs zero dynamic content and would do as well with a static site generator. But hell, you got to pull the WordPress buzzword to please the corporate people, cause they need cheap flexibility, and buzzwords.

    --
    Stupidity is the root of all evil.
  10. Defaced already by Anonymous Coward · · Score: 1

    The site is already defaced as soon as WordPress is installed.

  11. So what alternatives do you suggest? by jbarr · · Score: 1

    You've established that WP is not the solution. What do you suggest as a solution for less than tech savvy users who want to create good looking, fast, secure web sites?

    --
    My mom always said, "Jim, you're 1 in a million." Given the current population, there are 7000 of me. God help us all!
    1. Re:So what alternatives do you suggest? by SimplyAuke · · Score: 1

      You could try https://simplyedit.io/, disclaimer: I'm one of the authors and it's not (fully) open source. Its a blend between a static site generator and a CMS, as it runs mostly in the browser, not on the server. This means there is very little attack surface on the server. You can very easily write your own server side or connect it to an existing backend.

    2. Re:So what alternatives do you suggest? by NaCh0 · · Score: 1

      There's not a great solution, only unperfection options.

      They could use a managed website platform like SqureSpace.

      Or if they need WordPress, a less than tech savvy user can hire a professional management service like WP Site Care or OnSiteWP.

    3. Re:So what alternatives do you suggest? by ilsaloving · · Score: 1

      If you arn't able to hire someone with two clues to rub together (which is hard and expensive) use something that produces static websites. Unless you are hosting forums or something else that specifically requires code to do the work (like maybe, a comments section), there is zero reason to use a CMS.

      In the old days Dreamweaver was The Thing. You can still use it, or various similar tools (eg: Flux on OSX) to create very beautiful but static code-less sites. If you have a lot of content that requires some level of management, there are static site generators (https://staticsitegenerators.net/) available.

      If you MUST use a CMS... you're gonna have a hard time cause there are very few that arn't crap... if not for the coding itself, then for the language underneath, like PHP in this case. I personally try to use systems written in more sophisticated languages such as Java, because those languages require a higher minimum level of competency just to get started, so anyone who writes a full blown application in it will be more likely to have written something solid. No guarantees, naturally, but that's the general trend that I've noticed. A risk, of course, is that administration may be more complex as well.

    4. Re:So what alternatives do you suggest? by parks4life · · Score: 1

      I want to know the answer, too. Many organizations use Wordpress because it is free, can do so much, and is a known entity. They can find someone to do big fixes if something breaks. People are expecting great things from their websites and the ability to make changes on their own. It is the ability to make changes on their own that introduces some complexity. My gut tells me that third-party webmasters are dying out (I would love data on that). Yes, I will pay you $X to change the text on the calendar page. Some time ago people started to ask, "How can I do that myself?"

  12. Re:Great. by thegarbz · · Score: 1

    Wordpress isn't terrible code, but it is terribly well thought through from a security point of view. Think of it like design decisions in Windows XP which lead to most users logging in as Administrators. Wordpress's killer features are its extensibility. This allows a LOT of crap code to come into Wordpress installations due to no fault of its own.

    I remember my own Wordpress site turning into a spammachine. I had the entire administration system locked away to only allow access from a local IP address. I had taken all precautions including removing links to administration, changing the default directories, users, including limits on logins, disabling all features like comment posting etc. In the end the theme I installed had a security hole that was exploited which allowed the attacker to modify the theme's code. The theme itself turned into a spam service and my computer eventually crumbled under the load of sending spam when enough people visited the site.

  13. Security through obscurity not so bad? by bradley13 · · Score: 3, Interesting

    We all ridicule people who rely on security-through-obscurity. Incidents like this should make us take another look at that sentence: While we shouldn't rely on obscurity for protection, we shouldn't forget that it does help. Major platforms like WordPress are lucrative targets for hackers, who will spend a lot of energy searching for weaknesses they can exploit.

    Using some lesser-known platform, or even rolling your own, makes you a less interesting target. Sure, you may (will!) have other vulnerabilities, but far fewer people will be hunting for them. This is a not-inconsiderable advantage.

    --
    Enjoy life! This is not a dress rehearsal.
    1. Re:Security through obscurity not so bad? by drinkypoo · · Score: 1

      Using some lesser-known platform, or even rolling your own, makes you a less interesting target. Sure, you may (will!) have other vulnerabilities, but far fewer people will be hunting for them. This is a not-inconsiderable advantage.

      It's not an advantage since people are going to play all the same attacks against all the sites regardless of what they claim to be running, and since you are not a whole team of people you will almost certainly make several of the same mistakes and get owned anyway. If you don't know what you're doing when it comes to security, you are almost certainly going to do a worse job even than Wordpress, let alone Drupal. (Wordpress has a new major hole every other week; Drupal has only had a few of them total.)

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    2. Re:Security through obscurity not so bad? by Anonymous Coward · · Score: 1

      My client just uses an ancient version of Wordpress that doesn't have the API feature yet - practically unhackable ;-)

  14. Re:Wordpress the first open source failure... it i by Anonymous Coward · · Score: 1

    But it doesn't scale enough. Nothing does.

    I don't know buddy. I've never had problems with ASP or ColdFusion. Tens of thousands of users at a time, and they work just fine.

  15. That's less than 1.5 percent. No big deal really. by Qbertino · · Score: 1

    Since WordPress runs more than a fourth of the entire web (110+ Million Websites), 1.5 Million infected sites isn't all that much. Yes, WP is a mess and could use a redo, but then most legacy systems could, so what gives? WP is popular, is exposed via port 80 all over the planet and thus is a big fat jucy target. I'm glad Automattic (WordPress Corp.) is alive and well and doesn't try to be anything else than the herald of WordPress and it's (small) business arm and does it's dues by keeping up with patches and fixes.

    --
    We suffer more in our imagination than in reality. - Seneca
  16. Which is right? by Xenna · · Score: 1

    Funny how the URL says 15 million and the article says 1.5 million.

    https://it.slashdot.org/story/...

    Has Slashdot been defaced too?

  17. LAMP rules. Get over it. by Qbertino · · Score: 1, Insightful

    The reason I hate WordPress is PHP.

    LAMP rules. Get over it. Yes, PHP is awkward (said it myself) and I don't particularly like it that much either. But show me another web PL that does what PHP / LAMP does.
    Hello World in PHP is "Hello World." There. Done. Upload a bunch of PHP files on to a LAMP setup, type in the URL in the browser and watch magic happen. No compiling, no appserver to babysit 24/7, no race conditions. Pure simple stupid procedural turing complete web template logic with some nifty utility functions bolted on left right and center, with no order or discipline what-so-ever. But they all work.

    LAMP rules, it get's the job done and right now it's also putting money in my pocket. Yes, there are a lot of n00bs and non-programmers doing stuff in PHP and the projects using it have little to no idea how to organise web-dev, let alone a clean model or dev pipeline. And it's really ugly and bizar. But it get's the job done, one hack at a time.

    PHP is the language that get's shit done on the web, plain and simple. It's the P in LAMP.
    That's why PHP has WordPress, Joomla, Typo3, EZ Publish, Drupal and such and Java has nothing of that magnitude. Go figure.

    My 2 cents.

    --
    We suffer more in our imagination than in reality. - Seneca
    1. Re:LAMP rules. Get over it. by LifesABeach · · Score: 1

      So how does does one use WordPress and by pass the REST open door?

    2. Re:LAMP rules. Get over it. by LifesABeach · · Score: 1

      I looked around and found out that just by updating to the current version one could have avoided the visitations.

  18. WP auto-patching should have mitigated this better by trawg · · Score: 2

    So I have five separate personal WordPress sites for testing/hacking/tinkering and casually look after one for a friend. Every single one of mine updated on the day the patch for this problem was fixed.

    I got email notifications from each of my sites notifying me they were updated before I heard about the problem. I read the WP blog post about it and thought "shit, that would have been a huge problem if my sites hadn't auto-updated!" and forgot about it completely.

    (Incidentally, the next night I had a much, much higher than normal number of brute force login attempts. Not sure if related.)

    I'd be very interested to find out why these 1.5m sites did not automatically update. I wonder if they're being manually updated or what the deal is. But if auto-patching worked as it was supposed to this vulnerability would have been mitigated much more quickly.

  19. /readme.html doesn't show exact WP version by rklrkl · · Score: 1

    Don't rely on /readme.html to show you the exact version any more for a recent WP install. They seem to have knocked off the third field, so versions 4.7, 4.7.1 and 4.7.2 all now say "4.7", which might scare someone into thinking they're still on the vulnerable 4.7.

    Of course, you can log into your WP admin interface and find the exact version there, plus it's also present as the $wp_version variable in /wp-includes/version.php if you have access to the Web tree filestore.

  20. Re:WP auto-patching should have mitigated this bet by rklrkl · · Score: 1

    WP auto-updating does have its risks of course - we've seen WP 4.7 introduce this big vulnerability for example (though I believe you can hold back these "major" updates and do them manually). Plus a lot of admins would prefer a scheduled time/day to update - it seems that by default auto-updating is fairly random w.r.t to its scheduling. Plus you'd want to update dev/UAT first before live in case there is breakage. Also, as far I know, WP auto-updating by default doesn't backup the Web tree/DB first and has no easy way to roll back a failed auto-update because of that (so off to tape backups you go whilst the site can often be down).

    Still, WP updating whether its manual, scripted or automatic is still a million light years ahead of Umbraco's updating (which usually can't be upgraded between major releases, so many Umbraco sites get stuck on a particular major release for a very long time, even after support has ended).

  21. Re:WP auto-patching should have mitigated this bet by Voyager529 · · Score: 1

    In my experience, the answer is "custom code and plugins". If you're running a bog standard Wordpress install with Akismet, FormNinja, Gallery, and a handful of the other top-20 plugins, auto-update is just fine and won't bother you at all. If you have a lot of custom layout code, or specialized plugins that are mission critical but not regularly updated, updating Wordpress can break them, thus breaking the website. Yes, it's stupid. Yes, this situation should not be the case. However, you asked thy people don't enable auto-update. That would, in fact, be why.

    As an aside, shameless plug for the super awesome Shield Plugin. It's free, and when properly configured, can prevent nearly all of the major forms of automated attack. I've also used iQ Block Country to nix traffic from most of the usual purveyors of such attacks. Not a dev or an investor, just a super happy user of both.

    Now, to go one further, Slashdot seems to be back-and-forth regarding mandatory auto-updating. Wordpress has a flaw, and the response is, "why isn't auto-update just how the thing works?". Microsoft implements this with Windows 10, and the response is, "How dare they tell me when I have to update!". Which is it?

  22. Umm, peer review? by Jason+Hildebrand · · Score: 1

    A developer's peers will generally know whether they provide good value or not. When preparing to do a performance review of a developer, ask for feedback about that developer from other developers on the team (and other co-workers they interact with on other teams).

    1. Re:Umm, peer review? by Jason+Hildebrand · · Score: 1

      Duh, sorry. Posted to the wrong story. :(

  23. it’s fuckwits all the way down by hhas · · Score: 1

    Any web software or web developer who seriously uses the phrase “REST API” possesses by definition an understanding of how the web is meant to work that is 100% complete and 100% wrong. And security is 10,000% more difficult to learn and implement correctly than HTTP is, so why anyone still trusts either one to such know-it-all idiots is entirely beyond me.

    1. Re:it’s fuckwits all the way down by Mats+Svensson · · Score: 1

      APi, with a small i ?

      Take out their families!

    2. Re:it’s fuckwits all the way down by hhas · · Score: 1

      Seriously, the web is not an "API" at all, it's a distributed data graph: a giant state machine where the only permitted operations are reading state, changing state, and introspection, and data transfers are automatically transcoded to whatever representation is most mutually agreeable to client and server. Everything else—information access, emergent behavior, evolutionary flexibility and robustness—is defined and shaped by a handful of ridiculously simple, totally uniform, interaction rules open and available to all. Everyone can read from the web. Everyone can write to the web. Any document. Any time.

      Instead of which, the 2Bn+ humans already online and the 5Bn more to follow are being reduced to mindless unquestioning serfdom at the hands of a few Fortune 100 theocrats and their high priesthood of micromanaging OCD martinets, as our ostensibly Open Web is reshaped into the absolute tyranny of these feudal App kingdoms we now have today. The web we have now is not the web we were all promised; it is what a handful of flaming Dunning-Kruger fools and cold calculating greed merchants have turned it into, the better to serve them not us. These endless streams of "Application security holes" and attendant betrayals of web users' data are merely one of myriad symptoms of a misunderstood misimplementation that is 100% rotten to its core.

      But I digress.

      To reiterate: "Web Programmers" are just absolute fucking [oxy]morons through and through; so preeningly self-assured in the incredible correctness of their Own Understanding and Grand Achievements they aren't even "Not Even Wrong" any more. Power corrupts, and the web has been corrupted completely. Thus humankind shall not be free until it has personally strangled the last Silicon Valley oligarch with the dripping intestines of its last code monkey intern—a much-overdue shitshow I for one hugely look forward to.:)

  24. Re:Great. by hhas · · Score: 1

    You should patch it to /dev/null. It’s the only way to be sure.

  25. Conversion is not validation by Tablizer · · Score: 1

    Value conversion isn't necessarily the same as validation. If you want validation, then use validation operations. Use the right tool for the job.