News for hackers. Stuff that matters.
Re:How To Not Get Your Blog Hacked by chaosprophet on Sunday September 06, 2009 @09:33AM (#807773)
>If you listen to the WordPress people, the answer to this is 'be extremely zealous about updating your software', which is the same as saying, devote half your life to learning and understanding WordPress administration.

Apparently this person has not used a recent build of Wordpress.

Re:How To Not Get Your Blog Hacked by goodkarma on Sunday September 06, 2009 @10:44AM (#807831)
But they've got a point. Even if it takes "only 10 minutes" to upgrade, there have been so many new versions and so many security issues that it gets kind of old after a while. Especially if you have multiple sites all running it.
Re:How To Not Get Your Blog Hacked by ionfish on Tuesday September 08, 2009 @05:01AM (#810544)

  svn update
Not a complex command to run! I hear there are these things called cronjobs too, so you don't even have to run it yourself. Just pick the latest stable branch and svn switch when a new major version comes out.
Re:How To Not Get Your Blog Hacked by goodkarma on Sunday September 27, 2009 @03:14AM (#846623)
That makes sense in theory, but our company has dozens of WordPress sites. Once you have more than a few, managing software and plugin versions becomes exponentially more challenging.

I'm in the process of upgrading all of them to 2.8.4 and installing the necessary plugins and params in the config file so they can all be "auto updated" in the future. I plan on having my VA manage them from there.

However sometimes strange things happen - for example, I auto upgraded one of our sites the other day and the whole thing broke and only rendered a blank page, so it's entirely possible my VA will break one or more sites even using the auto upgrade functionality.

Re:How To Not Get Your Blog Hacked by bmj on Sunday September 06, 2009 @09:54AM (#807791)
I was going to post the very same thing. I went from 2.6 to the latest version in about 10 minutes, at least half of which was downloading the update, the pushing it up to the server.
Re:How To Not Get Your Blog Hacked by reedlaw on Sunday September 06, 2009 @10:27AM (#807815)
Obviously not. Otherwise he would have known about WordPress' automatic upgrade feature: http://codex.wordpress.org/Upgrading_WordPress

Plugins can also be upgraded with a single click.

Re:How To Not Get Your Blog Hacked by idlewords on Sunday September 06, 2009 @11:01AM (#807851)
The recommended procedure for "automatic" upgrades, as described on that page, is to back up your entire database and disable all plugins beforehand.
Re:How To Not Get Your Blog Hacked by reedlaw on Sunday September 06, 2009 @11:24AM (#807869)
That should take, at most, a few additional clicks, since plugins can be disabled en masse and databases can be backed up with another plugin (or done automatically at the server).
Re:How To Not Get Your Blog Hacked by lucumo on Sunday September 06, 2009 @11:20AM (#807865)
Not as bad as phpBB's "automatic" upgrade, which gives you a tar-ball of changed files which you're supposed to unpack...
Re:How To Not Get Your Blog Hacked by reedlaw on Sunday September 06, 2009 @11:26AM (#807871)
Exactly. I give WP a lot of credit since it's the only web application I know of that can be upgraded from its own interface without the need to ever login to a shell or manually FTP files to the server.
Re:How To Not Get Your Blog Hacked by jasonneal on Sunday September 06, 2009 @12:37PM (#807916)
That's what I love about WP. Joomla 1.6 (about to go into Beta) also has this feature as a built in component (which is also installable to Joomla 1.5.

When I read the article right at the first paragraph I was appalled. Quote: "...devote half your life to learning and understanding WordPress administration..." Really? Half your life to learn how to click ONE link? I don't get it, has the author here never even upgraded Wordpress?

Re:How To Not Get Your Blog Hacked by amalcon on Sunday September 06, 2009 @01:27PM (#807953)
Call me crazy if you like, but I'd never use a webapp that has that feature. It just opens you up to more potential security problems. For example, it appears to operate over in-the-clear HTTP. Poisoning someone's DNS cache and then somehow triggering an "upgrade" = changing their software to whatever I want.

Also, "Note that your files all need to be owned by the user under which your Apache server executes, or you will receive a dialog box asking for "connection information," and you will find that no matter what you enter, it won't work." That's a security no-no if I've ever seen one.

Re:How To Not Get Your Blog Hacked by brandnewlow on Sunday September 06, 2009 @10:53AM (#807841)
It's WP's fault that he's not aware of how much easier it is update current releases, not his.
Re:How To Not Get Your Blog Hacked by chaosprophet on Tuesday September 08, 2009 @11:38AM (#811214)
I would disagree. If he had done the update then it would have been obvious how easy it is becoming with each release.
Re:How To Not Get Your Blog Hacked by bcl on Sunday September 06, 2009 @01:31PM (#807957)
This advice is just silly. In other words throw out all of the advances of using php, python, ruby, etc. server side because software has bugs. Or rely on a centralized managed blog host that is also susceptible to bugs, except that when they are exploited there they can effect many more people at once.

My advice? If you host your own web apps at least take the responsibility to administer them. Wordpress has made huge improvements in their update process.

My upgrade process is this: * dump a copy of the database * disable plugins * copy the current public_html directory to a backup (just in case) * untar new release over the top of the old * run /wp-admin/upgrade.php * reenable plugins

Re:How To Not Get Your Blog Hacked by idlewords on Sunday September 06, 2009 @01:52PM (#807977)
What great advances is this approach throwing out?

Most bloggers have a very simple use case: publish stuff that looks nice, generates an RSS feed, and maybe allows a comment thread. Most bloggers are not, and have no interest in becoming, sysadmins or DBAs.

My contention is that it is easy to set things up so you can blog with whatever app you want without leaving your data at the mercy of the next person to find an exploit.

Re:How To Not Get Your Blog Hacked by tptacek on Sunday September 06, 2009 @01:59PM (#807985)
Unless you check up on your blog several times a day --- and most people don't even check up on their blog several times a week --- it doesn't matter how streamlined WordPress has made its upgrade process.
Re:How To Not Get Your Blog Hacked by AdamGibbins on Sunday September 06, 2009 @10:25AM (#807813)
A static version of your blog? That would be all well and good if it were not for comments...
Re:How To Not Get Your Blog Hacked by psadauskas on Sunday September 06, 2009 @11:17AM (#807862)
Sure, its even easy. Go grab jekyll http://github.com/mojombo/jekyll/tree/master, which can turn your haml/sass, textile or even markdown into static html pages with links. Host it yourself or on github, and use one of the comment hosting services, or throw a link to any technical-ish post here on HN, and people can comment on it.
Re:How To Not Get Your Blog Hacked by nirmal on Sunday September 06, 2009 @10:56AM (#807845)
I have a static blog and used to have Disqus for comments. I've since disabled Disqus, no fault of theirs, I just decided that I didn't want comments.
Re:How To Not Get Your Blog Hacked by unalone on Sunday September 06, 2009 @11:00AM (#807849)
So can you put Disqus up on HTML pages?
Re:How To Not Get Your Blog Hacked by nirmal on Sunday September 06, 2009 @12:02PM (#807894)
Yep, Disqus can be added to a website by putting a Div that Disqus will fill from a piece of javascript.
Re:How To Not Get Your Blog Hacked by _pius on Sunday September 06, 2009 @11:54AM (#807885)
yep, it's what I do (Jekyll + Disqus) and it's actually very easy.

example and instructions from someone else's blog:

http://dcreager.net/2009/08/07/disqus-comments/

Re:How To Not Get Your Blog Hacked by dtf on Sunday September 06, 2009 @10:56AM (#807846)
Sounded like an interesting proposition. Would it be possible to do this and use Disqus?
Re:How To Not Get Your Blog Hacked by idlewords on Sunday September 06, 2009 @11:04AM (#807855)
You should be able to pull in comments from an outside service using a <script> tag. And if that service doesn't exist, hey, startup idea!