Jump to content

Archived

This topic is now archived and is closed to further replies.

pafranklin

Site Hacked with links to other sites injected

Recommended Posts

Hello,

 

My website has been the subject of a hack and the site now displays some malicious codes at the top of the left column.

 

When using view source I can see the outputs of the following which generates some malicious links on all pages. However I do not know how this table is generated or where to look to find this code. I've checked as many files as possible but am stuck so hoping someone could point me in the right direction? Its not on all pages and for example main categories links show correctly.

 

Link to show the problem (top left of left column) - http://www.martinberrillsports.com/shopping_cart.php Also image enclosed to show where the "jewellery" related links are showing in my sports website.

 

I hope that someone can help please?

 

Many thanks.

Paul


You will never learn if you don't try. And boy am I trying....!

Share this post


Link to post
Share on other sites

Removed a bunch of links.

 

I dont think you ar hacked, I suspect that 1 or more sites is using the same cache settings.  Ask your host.


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites

@@pafranklin It's a common problem when cache is enabled and set to tmp. That causes the cache to use the servers tmp directory, which is shared with other sites on the server. For a quick fix, turn off the cache option in admin->Configuration. Then change the cache path (also a setting in that location) to a local directory and re-enable it.

Share this post


Link to post
Share on other sites

Hi Jack_mcs, burt and wHiTeHaT,

 

Its official - I love you guys!! Thanks for the great input and of course it worked. One final question is how do I change the cache path to a local directory?

 

Many thanks again all!!  :) 

 

Paul


You will never learn if you don't try. And boy am I trying....!

Share this post


Link to post
Share on other sites

You need to have a directory to write to. 2.3 versions of oscommerce use includes/work/ so I suggest using that. If there isn't such a directory, create one. Then go to admin->modules->payment and you will see your server path displayed. Copy it and change it so it goes to includes/work/. then paste it into the setting in the cache section.

Share this post


Link to post
Share on other sites

×