Live data from Hacker News

TELL HN: Many sites at Bluehost got hacked today (including their CEO's blog)

blog.sucuri.net

11–18 of 18 posts

Re: TELL HN: Many sites at Bluehost got hacked today (including their CEO's blog)

#11

Earlier quoted context omitted.

Maybe you should tell them to secure their wordpress install instead: 1. Put an IP lock on the login page via .htaccess so that it can't be accessed from anywhere else but your IP - this one change alone can stop a significant percentage of intruders. 2. Add this line to the .htaccess file at the top level of your WordPress install - deny from all - it'll make it harder for your database username and password to fall…

First off, thanks for giving out instructions for securing wordpress. > Maybe you should tell them to secure their wordpress install instead Hence the ":P", my comment was mostly in jest. > 3. Create an empty wp-content/plugins/index.html file - otherwise you leak information on which plug-ins you run It's better to just disable indexes on the entire site. That prevents anyone from poking around. Options -Indexes Fol…

I can understand your bitterness, one of my earliest wordpress sites got hacked. I just feel that the benefits of wordpress (ease, flexibility, SEO etc) far outweigh the risk of getting hacked.

Re: TELL HN: Many sites at Bluehost got hacked today (including their CEO's blog)

#15
post #12

Ouch. How many times do I need to tell people not to use wordpress? :P

These attacks are not Wordpress-specific. The CEO blog was running Wordpress, but every type of site got affected.

Indeed. If you use shared web hosting (like Bluehost) there are often hundreds of other websites running on the same server. It is trivial to write a script that runs with the permissions of the webserver to snoop other websites' files. Read the config files (wp-config.php in the case of Wordpress) and you can then access the database directly and wreak major havoc.

Re: TELL HN: Many sites at Bluehost got hacked today (including their CEO's blog)

#16
post #12

Earlier quoted context omitted.

These attacks are not Wordpress-specific. The CEO blog was running Wordpress, but every type of site got affected.

Indeed. If you use shared web hosting (like Bluehost) there are often hundreds of other websites running on the same server. It is trivial to write a script that runs with the permissions of the webserver to snoop other websites' files. Read the config files (wp-config.php in the case of Wordpress) and you can then access the database directly and wreak major havoc.

Note that this is only true if your host is running PHP using mod_php or similar, and they don't have safe_mode configured properly.

Re: TELL HN: Many sites at Bluehost got hacked today (including their CEO's blog)

#17
post #16

Earlier quoted context omitted.

Indeed. If you use shared web hosting (like Bluehost) there are often hundreds of other websites running on the same server. It is trivial to write a script that runs with the permissions of the webserver to snoop other websites' files. Read the config files (wp-config.php in the case of Wordpress) and you can then access the database directly and wreak major havoc.

Note that this is only true if your host is running PHP using mod_php or similar, and they don't have safe_mode configured properly.

A perl script running via cgi could do it, no?

Re: TELL HN: Many sites at Bluehost got hacked today (including their CEO's blog)

#18
post #16

Earlier quoted context omitted.

Note that this is only true if your host is running PHP using mod_php or similar, and they don't have safe_mode configured properly.

A perl script running via cgi could do it, no?

Unless your host is incredibly dumb and doesn't have suexec enabled [1], CGI scripts run as their owner [2].

[1] And, if they don't, you should run away. Fast.

[2] The actual rules are a little more complex than that, but that's what it comes down to.

Post reply on HN