Wordpress Site Hacked !

somarco

GA Medicare Expert
5000 Post Club
36,758
Atlanta
My site has been hacked. Actually it happened a couple of times starting a few months back with a lot of redirects to a Russian porn site, followed by hacking my email and spamming the world which resulted in my service provider locking my account for a few days.

I thought the bad guys were gone but they came back about 2 weeks ago, or possibly never left.

I run a WP theme and keep it updated, both WP version, template and plugin updates.

Also do the same on all my computers, running Secunia on a constant basis to alert me to OS and program updates. Microsoft Essentials is my antivirus and Spybot checks for bad guys.

Two weeks ago my site went dark. No hits. Just barely showing up in search engines and when it did it was several pages back. Traffic dropped to near zero for 5 days. When it started to creep back it was barely a trickle compared to before and still had almost nothing on Google, Bing, etc.

No warning messages from Google analytics or webmaster. No malware. Only hint of something wrong was a big spike in 403 codes from people trying to access my site.

My son is a website/email security expert and I had him look at the site. He found some suspicious items and some file permissions that were not secure. He didn't have time to get into the site in more detail but saw enough to know I was definitely hacked, and possibly they had been there for some time.

My most recent tip off came when I upgraded to WP 3.4 and got a warning message that I was going to be redirected from inside the admin section which is extremely odd.

Normal scans on the client side showed nothing suspicious but Google and Bing both noted the high number of 403 codes.

Last night I was talking with my son again and he had more time to look at files in the admin section. What he found in wp-admin and index.php shocked even him. His exact words were "I have read about this but never seen it firsthand. This is extremely sophisticated. Oh, these guys are good. Really good. Yes, they OWN you."

On one hand I was glad he was having fun. Almost like seeing the Loch Ness monster in the flesh, so to speak.

On the other, I wanted him to get it out.

He was more fascinated in trying to figure out how they got in (other than the obvious permission settings) and how long they had been there.

Not me. I wanted them dead.

Talking further, he said inquiries to my site were still being redirected to Russia. Even more, when someone hit my site and got a 403 message and email was immediately sent to the hackers giving them the search term and other information.

He asked if I had any content on my site written by someone other than me. Other than quoting sources like the NYT Health Blog or Consumer Reports (with links and credit), no, it is all original.

As we talked more I remembered a post I had put up sometime last year about "Does Medicare cover Viagra" and had linked to an authority site where the information was provided. I also knew that my site has a lot of hits for "medicare viagra" and similar terms.

While Robert (my son) was eliminating the malicious code and writing more security code I looked at my Viagra post.

It had been completely rewritten by hackers.

Instead of the 200+ word post it had only one line "Find out how Medicare covers your Viagra".

I didn't even bother to look for links, I deleted and trashed the post. Followed up with a quick site search to see if Viagra was mentioned anywhere else.

It wasn't.

When I deleted the post, my sitemap was regenerated followed by pinging Google, Bing, Yahoo.

This morning I checked my site and my PR3 is restored (from a 0 for the last 2 weeks). My target search terms are back on pg 1, even the broad ones and it looks like traffic is starting to come back.

I had been trying to blame Panda or Penguin when in fact the problem was a hack. More importantly, all of the normal malware programs never picked this up, either from inside WP, Google webmaster or server checks.

The only way I would have known is to have someone who knows code and what to look for, all triggered by some really suspicious things going on then putting the pieces together.

Hopefully you won't have to go through this, and this is not a plug for my son . . . you probably couldn't afford him. But if your site traffic and ranking suddenly drops it may not be your fault.
 
Re: Site Hacked!

... and this is not a plug for my son . . . you probably couldn't afford him...
Hopefully, we're all proud of our children, but for some reason that statement just sounds a little "douchey". Not sure why.

But your experience does track with what others have cautioned me about re Wordpress.
 
Re: Site Hacked!

Sorry you feel that way Larry.

It was not intended to sound . . . douchey.

Yes, I am proud of him and what he can accomplish. But I know enough about what he does to know there are very few folks who can accomplish what he does, which probably explains why he is sought after by computer security firms and some very well known companies.

My situation has nothing to do with WP. It can happen with any site that is not 100% locked down.

WP (or Blogger) sites that are hosted for free by Google or WP are relatively secure due to the severe limitations on what you can install on the site. When you host your site, regardless of the design, on a private server and do a lot of the work yourself, even if you know what you are doing, you can get in trouble.
 
Last edited:
Re: Site Hacked!

Sorry you feel that way Larry.

It was not intended to sound . . . douchey.

Yes, I am proud of him and what he can accomplish. But I know enough about what he does to know there are very few folks who can accomplish what he does, which probably explains why he is sought after by computer security firms and some very well known companies.
It's just an observation, nothing personal. Maybe it pushes a button in me somewhere. I hope you get your site resolved.
 
Re: Site Hacked!

Wow, sorry to hear this! What a headache.

This is the dark side of using Wordpress for your site - hackers write scripts that scan the web looking for wordpress sites they can compromise. It's all automated and you can pretty much assume that if there's a vulnerability in your wordpress site, it's going to get hacked sooner or later. The better hacks cover their tracks very well so many site owners don't know they've been hacked.

A few tips for those of you with wordpress sites:

  1. Backup your site regularly, including your database, and don't store the backups on your host
  2. Make sure you always update Wordpress as soon as a new update comes out, and keep plugins updated as well
  3. Avoid using plugins that you don't really need or that aren't well known
  4. Take the time to lock down your wordpress install, verifying all of the permissions are correctly set, etc. - this doesn't happen by itself
  5. Move your insurance website over to AgentMethods where we worry about all of this stuff so you don't have to (sorry, couldn't help but throw that in :))

Also, I know "viagra" can bring you traffic, but personally I would use caution when writing topics that might be viewed as spammy or potentially inappropriate. I'm not saying don't do it, but definitely don't do it too much...

For us, having our site get hacked might be a nuisance or it might even affect our livelihood, but for banks, social networks, big ecommerce, etc. an unwelcome visitor can cause millions in losses. If Bob's son knows his stuff (and I imagine he does), there are plenty of businesses with a lot more $$$ on the line who need his services.

-Aaron
 
Re: Site Hacked!

1 - Done daily

2 - Always update, but some of the upgrades have had issues (such as Google sitemap generator) and took a few weeks to iron out.

3 - Yup.

4 - Most folks don't have any idea what that is, or how to correct it. I just happened to be going over some BPS (Bullet Proof Security) suggestions and noticed I had some plugins with 644 and 755 settings. I immediately corrected it, but the damage had already been done some time ago.

Can't say for sure how they got in but having these permission settings didn't help.

5 - Never heard of this Agent Methods company. Are they reputable?

FWIW, the Viagra post was intended for information and was relevant to a news story at the time. I try to incorporate 1 - 2 current events posts every week to generate traffic.

Unfortunately this post drew the wrong kind of curiosity seeker.

What is still bugging me is, the usual security scans did not detect this. It wasn't until the site was used (without my permission or knowledge) to spam the world for certain products and services that anyone took notice. This was a very sophisticated hack on a lot of different levels.
 
Last edited:
Re: Site Hacked!

FWIW, the Viagra post was intended for information and was relevant to a news story at the time. I try to incorporate 1 - 2 current events posts every week to generate traffic.

Unfortunately this post drew the wrong kind of curiosity seeker.

I can only speak for myself, but I was grateful for the viagra information.

Rick
 
Back
Top