Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Need help with a hacked website

Posted on 2012-04-03
5
299 Views
Last Modified: 2012-06-09
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
Comment
Question by:programthis
  • 3
5 Comments
 
LVL 8

Expert Comment

by:Ben McNelly
ID: 37803435
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
 

Author Comment

by:programthis
ID: 37803488
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
 

Accepted Solution

by:
programthis earned 0 total points
ID: 37804084
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
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 37810403
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
 

Author Closing Comment

by:programthis
ID: 38065241
Found the issue myself
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SSL Certificate for IIS7 Site 2 58
php help 34 58
How to make a good PHP + MySQL + JS pagination system? 3 32
check mysql insert 12 27
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question