How to lock down CFIDE in IIS

Leaving your CFIDE folder naked and hanging in the breeze is an oft-overlooked security hazard on servers running ColdFusion. I ran into an issue with our CFIDE folder at work today, that took a while to debug. We are transitioning to a new data center, and our flash forms were giving the "RSL load failed!" message on the new machines. I had locked down CFIDE, but forgotten to allow access to /CFIDE/scripts/.

How to lock down your CFIDE folder in IIS 5 and IIS 6

  • Open IIS, expand each site that has a virtual mapping to CFIDE.
  • Right click CFIDE and click Properties.
  • Go to the Directory Security Tab.
  • Click the Edit button inside the "IP Address and domain name restrictions" section.
  • Click the radio for "Denied access except for the following"
  • Add your machine's internal IP, and add 127.0.0.1

Click OK, OK, Apply, OK, OK, Apply, Up, Up, Down, Down, Left, Right, Left, Right, B, A, etc.

Now you need to allow access to /CFIDE/scripts/, or your cfforms won't work.

  • Right click /CFIDE/scripts/ and click Properties.
  • Go to the Directory Security Tab.
  • Click the Edit button inside the "IP Address and domain name restrictions" section.
  • Click the radio for "Granted Acess"

Click OK, OK, etc.

Go to the command prompt and issue the iisreset command.

Make sure you can still get to your CFAdmin while logged onto your box directly. Make sure you can't from the outside world.

Now go do it!
There are many many many of you who have naked administration login pages!
You know who you are!

 

Posted by nagrom on 03/10/2008 at 2:44 PM | Categories: ColdFusion -

4 Comments

Mark Holm wrote on 11/21/08 10:43 AM

Would love to do it but.. I have a uber paranoid server admin. He will not allow me to rdp to the server so I have to access the CFIDE via my web browser on my machine.

Taka wrote on 06/06/09 1:00 AM

Hey. Could you imagine how horrible things would be if we always told others how we felt? Life would be intolerably bearable.
I am from Armenia and now study English, give true I wrote the following sentence: "Inhibition of human basophil histamine release by a new anti allergy compound, cl."

Waiting for a reply :o, Taka.

Ryan Stille wrote on 07/09/09 12:23 PM

Even allowing access to the scripts directory can be dangerous. Adobe just released a hotfix to fix an issue where you can upload files to the server by accessing some scripts in /cfide/scripts/

Matt wrote on 04/23/10 1:34 PM

I am getting this after a 3rd party developer used cfform type="flash".

I don't really want to give access to scripts. How do we do this?

Your two cents:











Leave this field empty: