Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a website and when I try a search like this: site:dichthuatviettin.com it gives me bunch of result like this :

Example screenshot of result
Those pages do not exists on my website, how did they get there?

I don't know what happening with my website anymore ! Any help or explaination why this happen ?

share|improve this question
    
Is your site built on Joomla or Wordpress? –  Wexford Jun 25 at 8:33
    
No , It's my company framework –  user41724 Jun 25 at 12:35
8  
Those pages do exist on your site. I can access them without problems right now. –  Agent_L Jun 25 at 12:53
3  
You've been hacked by the Pharma hack... It is an absolute nightmare to fully clean up from - search all files on your website encrypted with base64. Often, you won't see this spammy code on your pages like some of the other answers suggest cleaning because it is only visible to Googlebot. –  zigojacko Jun 26 at 7:23

3 Answers 3

Your website has been compromised and it is being used by blackhat SEOs. This is a pretty common thing amongst spammers and the like. Take a look at: My site's been hacked - now what?, by Google.

  1. Download a backup of your website. Make sure that you also backup the database, not just the files.
  2. Get in contact with your web host and explain the situation.
  3. Check to see if your software is out of date (Joomla, Wordpress). Do the same for all of your plugins. Search around to see if anyone else has reported any vulnerabilities in the plugins that you use.
  4. Change all FTP passwords and usernames.
  5. Ensure that your admin login is secure. Use usernames other than "admin" and "user". Change your password and make sure that it isn't easy to guess. Make sure that your site guards against brute force attacks as bots are constantly trying to break into Wordpress panels (two of my Wordpress-driven websites see attacks on a daily basis).
  6. Take the site down for the time being until you've fixed the issue. Do what Google suggest and return a 503 HTTP status code.
  7. If the site is custom, contact the developers.
  8. Once a part of your website has been compromised, you should assume that everything on your website has been compromised.
  9. A complete wipe and a fresh re-install of your software (Wordpress, Joomla) is in order. Sometimes, hackers will leave backdoor scripts that give them remote access or they'll inject code into core parts of your software.
  10. Try to avoid applying 777 permissions to directories.
share|improve this answer
8  
Important Before you reinstall/wipe/rollback/whatever, find out how they did it. Otherwise they'll just do it again. –  Martijn Jun 25 at 13:41
    
FWIW sometimes these hacks are only visible to search engines (IP addresses or user-agents), check with a tool like Fetch as Google if you're unsure: googlewebmastercentral.blogspot.ch/2009/11/… –  John Mueller Jul 1 at 20:42

Looks like you've been 'hacked'. Someone found a method to upload pages to your server en got them indexed. Go through your site/database and do a deap search for those keywords.

Tip: with the commandline you can find and sort files on last edit date (this does last 25):

find . -type f -printf '%T@ %p\n' | sort -n | tail -25 | cut -f2- -d" "

After that, check for holes, wrong rights, your uploads etc. If it's a Wordpress, Joomla Drupal site, or another framework, read into security about that framework. 'Hackers' love those sites and exploit them with bots.

share|improve this answer

I have had this happen to me a while back on a shared server. Wexford's list is pretty comprehensive, but I wanted to include that the attacker also added their own key under .ssh/authorized_keys and was able to reinfect my site after I removed everything. I'm not sure if this is the case in your setup, but being on a shared server can expose you to attacks by other compromised sites (users) on the same server. Any world-writable directories can have web shells dropped in by any user on the server, and any world-readable application files containing database credentials can be read by other users, so your web application doesn't need to be vulnerable in order to be compromised. Hardening permissions on any sensitive files/directories is a good start, and removing the world-readable bit (but leaving the executable bit) on one of the top-most directories is another good step.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.