Zen Cart & Siteground Users Beware – Hack

July 17th, 2009 by Bo Cakmak


I manage several Zen Cart shopping cart systems on a Siteground Hosting Platform and was greatly shocked to find that I had been hacked!  It was pure chance/luck that I happened to be browsing the sites using firefox with the user agent set to googlebot.  To my astonishment, the home pages of the sites had become a link directory to viagra style spam sites with over 100 links strait from the website home pages!  After a little digging I discovered that in the admin, under tools->define pages editor->define main page the following code had been inserted at the top:

Zen Cart Main Page Hack Code

Zen Cart Main Page Hack Code

Zen Cart Main Page Hack Code

I have no idea how it got there but the worst part is that if you are using a browser, you will never even know you got hacked unless you directly check in the admin or you set your user agent to Googlebot.  This way you are unknowingly passing pagerank to all spam sites and you will never be the wiser while your rankings begin to plunge.  My suggestion to all who read this…check your define pages code as well as your htaccess files for hacks as well as making sure that no strange keywords are all of a sudden appearing within the keywords section of Google Webmaster Tools.

I hope this helps and good luck!

To all you hackers/black hat SEO people out there that use this type of methodology for links…why not stop doing things the cheap way and you may actually achieve some degree of success that won’t eventually bite back.

Additional Information

Places to check to see if your Zen Cart has been hacked:

Login to your admin and check the following sections.

  1. Tools >> Define Pages Editor
  2. Configuration >> My Store

You should also check your footer file to make sure that it has not been hacked.  If you see SPAM links within your footer, they are most likely caused by the code within the My Store section or code within the footer file.

Zen Cart Root >> Includes >> Templates >> YOUR_TEMPLATE (template default if not modified) >> common >> tpl_footer.php

If you see SPAM links within the body then they are most likely caused by the hack within the Define Pages section of Zen Cart.

For more information on how to detect if your site has been hacked see the Google Webmaster Guidelines.

Web Hosting

Leave a Reply

You must be logged in to post a comment.

7 Responses to “Zen Cart & Siteground Users Beware – Hack”

  1. Comment by alittledigital

    My Zen cart got hacked and my daughter fixed the admin panel but I noticed that 2 of my categories had also been hacked with spam under the description. Are there any other places that I should be looking?

  2. Comment by Bo Cakmak

    You should also check your tpl_fotter.php file under common templates and your email templates. Please feel free to add any other locations that you can discover.

  3. Comment by doug

    My Zen cart was not yet live and it was hacked in the same way. My rankings dropped now I have a bunch of links that look like this:

    /map.php/?pmccv=42
    /map.php/?pmccv=17
    /map.php/?pmccv=34

    Each one has several links to other Zen Cart sites around the world.

    How can i get rid of all these links and improve my rankings with google?

    D

  4. Comment by Bo Cakmak

    Hi Doug,

    To answer your questions I would need a little more information.

    1. How long and how well has your site been ranking and in which search engine? I assume you mean Google.
    2. What is the URL of your site as I cannot determine how to get rid of the links if I do not know where they are.

    I am happy to help once you provide the information.

  5. Comment by Fran

    Hi, my site seems to have been hacked as well and its an up to date version of Zencart according to the admin… My store name was changed to something containing html at the end of the store name. It stopped visitors to my site from being able to register.
    Cheers for the post, will check those other places now and see if the bad code is anywhere else!

  6. Comment by Lian

    Hi, Thanks for this info, i think my site may have been hacked, but wasnt sure where to check for the links. Thanks again.

  7. Comment by Click

    I have to say I concur with most of what is being stated here. I’m gonna have to have to snatch the rss so I can keep tabs. on what is going on here.