Solved

malicious javascript keeps showing up in files on website

Posted on 2013-05-27
6
191 Views
Last Modified: 2013-05-31
I have a site on a server that has been hacked. At first i thought it was a permissions error on the directory, but I went through and looked at all of the file permissions.

This is a server that was setup by someone else and the site was migrated to the server. I'm working in expressionengine and I tried to update the expressionengine version and thought I had gone through every file and whamo it started showing up again.

I will say however that when upgrading I switched the "system" files to be hidden below the root and that does not look to be infected after this second wave of files.

I can ssh into the server and I have FTP access, user logs in the control panel looked normal and there were no abnormal logins to the site or the control panel.

Where should I start? what should i search for?
0
Comment
Question by:adrake9
6 Comments
 
LVL 2

Author Comment

by:adrake9
ID: 39200037
it seems to be going after the following files. all html files and javascript files above the root and dropping them in to the files most of the time at the end.
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 167 total points
ID: 39200450
Change all logins and passwords and change them all at the same time so no one can sneak in one after you change the others.  If they have the user logins then there wouldn't be anything odd in the logs.
0
 
LVL 53

Assisted Solution

by:COBOLdinosaur
COBOLdinosaur earned 167 total points
ID: 39201812
Sounds like an inside job.  You might have to timestamp logins, and log all file changes to find the culprit. What kind of damage is the scripting doing?

Cd&
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 2

Assisted Solution

by:Uwe Degenhardt
Uwe Degenhardt earned 166 total points
ID: 39210403
Try to get a malware scanner additionally and scan every single file.
Google after: maldet (it is extremely useful)

Also try to see, if you have rootkits on board which you don't see yet. Try rkhunter and/or chkrootkit (go and search again on the net for the exact URLs to download them).

If you can't stop it after all these measures, go and re-install the whole engine.
0
 
LVL 2

Author Closing Comment

by:adrake9
ID: 39210427
Was able to rollback the server and then change the passwords immediately. Lost some content, but nothing that wasn't available somewhere else.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39211573
Good, thanks for the points.  Make a big note and make sure you always have a backup copy of your site.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This article discusses four methods for overlaying images in a container on a web page
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.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now