Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 305
  • Last Modified:

Need help with a hacked website

Our site, lasiksurgerynews.com, is experiencing a very strange hack that I have been unable to locate and I would appreciate your suggestions.

Here is what is happening:
http://www.lasiksurgerynews.com works just fine and is not hacked but the secure version of the site - https://lasiksurgerynews.com - IS hacked and is a completely different site from what you see on the non-SSL version.  As a matter of fact it is a Joomla-based site called "My Photo Battle" and we have never used Joomla for any of our sites.

The other bit of information that may or may not help is that we have a primary and a backup server in place for this site.  Currently we are running on the backup server (IP 174.121.37.5) but the malicious site showed up in Google a few months ago while we were running on our primary server - located at a different hosting company, location, IP address, server, etc.

First of all, we do not have an SSL certificate for the site.  Second, the hacked site appears to come from the same server, both on IP 174.121.37.5.  It also appeared to come from the same IP as the primary server when the site was running on it.

Because the malicious site seems to be independent of where the site is hosted, I do not think it is a server hack.  I have scanned all of the files in the site, which is a simple PHP-based site (even though most file extensions are .shtml).  Just some PHP includes and then lots of static html content on every page.  Nothing terribly complicated or database-driven.

I have checked htaccess files, scanned all of the files for base64 hacks, looked for meta redirects, and run through online scanners.  Nothing comes up.  If anyone has any suggestions I will be extremely grateful.

The only other thing I can think of is an SSL hack?  I don't even think it's possible, but one thing I did try is to rewrite https to http in the root htaccess file but the rule is ignored since the malicious site is not running from our web root.

Thanks for your assistance.
0
Ryan Herndon
Asked:
Ryan Herndon
  • 3
1 Solution
 
Ben McNellyCommented:
I haven't dug into this at all yet, but right off the bat this looks like it could be DNS related. Who is your registrar, who is your host and how do you have your DNS set up?

edit: Looks like it may be hosted by the planet, which is now owned by softlayer...
Domain Name: LASIKSURGERYNEWS.COM
   Registrar: DIRECTNIC, LTD
   Whois Server: whois.directnic.com
   Referral URL: http://www.directnic.com
   Name Server: NS10.DNSMADEEASY.COM
   Name Server: NS11.DNSMADEEASY.COM
   Name Server: NS12.DNSMADEEASY.COM
   Name Server: NS13.DNSMADEEASY.COM
   Name Server: NS14.DNSMADEEASY.COM
   Name Server: NS15.DNSMADEEASY.COM

Open in new window

0
 
Ryan HerndonWeb DeveloperAuthor Commented:
Our DNS is hosted at DNS Made Easy, which gives us the ability to automatically change records when servers go down (hence the use of a primary and backup server).

I was just thinking it is something to do with DNS and am checking with DNS Made Easy now.

Thanks for the tip.
0
 
Ryan HerndonWeb DeveloperAuthor Commented:
It ended up being a misconfiguration on our backup server.  For some reason the SSL site for myphotobattle.com was directing to our domain.

It no longer loads but the damage has been done in Google's index.
0
 
Ray PaseurCommented:
The Google index can be helped a little bit if you make a Google Site Map and submit it to Google.  

Even better?  Get yourself an SSL certificate and put up the HTTPS version of the site you want Google to find.  Make a 404 handler that redirects with "Moved Permanently" to the home page of the non-SSL site.  Let each of your pages in the SSL site redirect to the same REQUEST_URI on the non-SSL site.  Things will get fixed up in about a month.
0
 
Ryan HerndonWeb DeveloperAuthor Commented:
Found the issue myself
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now