November 28, 2012
ColdFusion 10 Server Lockdown Guide
Comments
(20)
November 28, 2012
ColdFusion 10 Server Lockdown Guide
Staff 109 posts
Followers: 40 people
(20)

The server lockdown guide for ColdFusion 10 is now available on the Adobe website. The ColdFusion 10 Server Lockdown Guide will help server administrators secure their ColdFusion 10 installations. You will also find several tips and suggestions intended to improve the security of your ColdFusion server. 

You can access the lockdown guide here.

20 Comments
2014-10-10 09:08:04
2014-10-10 09:08:04

The CF10 lockdown instructions have at least one small issue. It provides the following instructions to make sure that Apache and mod_jk can talk to each other:

setsebool httpd_can_network_connect 1

While this is definitely needed, the above does not persist the change, so as soon as you reboot the server, the setting is lost.

You need to add the persist flag:

setsebool -P httpd_can_network_connect 1

Like
2014-04-15 12:30:05
2014-04-15 12:30:05

Hi Kjetil,

I don’t know if webdav is the best solution for uploading files, you might consider running a SFTP or FTPS server instead.

You will need to make sure that the IIS Application pool identity has permission to write to the web content, you also need to make sure that the HTTP verbs are not restricted, webdav uses several HTTP verbs to operate.

Like
2014-04-09 06:40:42
2014-04-09 06:40:42

I’ve followed the lockdown guide using CF 10 on a Win 2012 Server with IIs 8. I can’t get Webdav to be working, is there any explaination of this? Have done the settings correctly in IIS according to guides provided by Microsoft. But maybe some of the lockdown steps will disable webdav? What is the best practice for uploading files from a client to a webserver? We must use this for our developers, would avoid FTP.

Like
2014-01-05 13:15:07
2014-01-05 13:15:07

Setting up a new CF10 server and either I’m reading the PDF wrong or there’s something not right here. On pages 29-30 – the chart for permissions on the coldfusion home folder.

I removed all inherited permissions and setup exactly what the PDF says:

{coldfusion-home} Administrators and cfusion user full control
{coldfusion-home}/config/wsconfig/
and
{coldfusion-home}/cfusion/wwwroot/CFIDE

IUSR and the IIS service account (iisservice) list & read

When I open administrator now I get a 401.3 unauthorized (ACL) and the file throwing the error was isapi_redirect.dll

When I put the inherited permissions back in place, it works fine.

Like
2013-11-18 13:24:28
2013-11-18 13:24:28

Thank you Shawn.

Like
2013-11-18 11:37:03
2013-11-18 11:37:03

You create a locally accessible CFAdmin website, so you can remove the exclusions that are defaulted server wide to all your other websites.

Then to access that website expand the folder on the left to CFIDE and highlight the administrator folder, then on the right side click run website, then when you are promtped with the ssl warning say continue, and then you can access cfadmin locally, but not publicly.

Like
2013-11-17 21:27:53
2013-11-17 21:27:53

Just finished a CF10/Windows Server 2012 installation and have the same question as Jim.

At “2.2.9 Create a Website For ColdFusion Administrator” you are instructed to create a web site in IIS for the CF Admin.

Nothing else that I can find points to what is done with this website.

What am I missing?

Like
2013-08-10 12:05:00
2013-08-10 12:05:00

Is there a release of the lockdown guide for Windows Server 2012. There are enough differences between 2008 and 2012 that I’m concerned about errors running or updating CF in the future.

Like
2013-05-16 07:34:06
2013-05-16 07:34:06

Are there errors in the lockdown guide?

1) It says to create the cfadmin directory, but then it doesn’t say anything about copying anything to it. Are you supposed to copy what’s under the Coldfusion cfusionwwwroot to your new cfadmin folder? If you do, will the updates then fail since it does not know where the actual CFIDE is or do you have to copy it over again after each update.

2) Moving the CFIDE appears to break the updates, the accordions are gone and when I click on “Download” nothing happens though the rest of the administrator appears to work.

Like
2013-02-08 09:50:53
2013-02-08 09:50:53

@David – that would be a fantastic idea.

Like
2013-02-08 09:27:01
2013-02-08 09:27:01

It would be pretty amazing if we could turn the CF Documentation into a community editable wiki and stuff like this could be managed there too so that new security techniques can be perpetually added by the community.

The quality and clarity of the CF docs would shoot up 1000% if you let the people in the community that have the resources to do so manage and edit them, we’d love to help.

Just an idea. Thanks!

Like
2012-12-10 04:33:53
2012-12-10 04:33:53

Got the previous worked out I think but now getting 404 errors on pages that do exist.

domain.com/ (which loads index.cfm) works fine

domain.com/index.cfm (or any .cfm file) gives a 404.

domain.com/whatever.htm works fine.

Like
2012-12-04 17:45:39
2012-12-04 17:45:39

Not sure about the folder permissions on pages 41 & 42. 41 talks about full control for cfusion user on the cf install directory. 42 talks about read for the iisservice account for /wsconfig/ but then the chart shows full control for coldfusion install directory twice but no user account is referenced.

Like
2012-12-01 01:31:35
2012-12-01 01:31:35

@Rakshith,

Thank you for another great lockdown guide.

It’s possible to generate ColdFusion 10 Server Lockdown Guide PDF in portrait orientation instead of landscape?

Thanks.

Like
2012-11-29 14:09:27
2012-11-29 14:09:27

I always do it at the server level, so, it’s not in the web.config file. It gets written in applicationHost.config. But, here is the snipit: The key is having allow sequence after the deny sequence.

Like
2012-11-29 13:57:26
2012-11-29 13:57:26

@Sumit,

I tried with with IIS 7.5 and when I tested it it did not seem to work. I did see an article that made it look that it worked.

Can you post your web.config(s) as it relates to this.

Thanks.

Like
2012-11-29 11:46:57
2012-11-29 11:46:57

Thanks for a great guide.

Are you sure about this statement:

“It is not possible using request filtering to deny the URI /CFIDE but then allow /CFIDE/GraphData.cfm for example.”

Because I have all my server setup exactly that way and it is working for me. (Win 2008 R2 + IIS 7.5)

Like
2012-11-29 11:36:29
2012-11-29 11:36:29

If you have several IIS servers it’s easier to edit the web.config on your web root vs using the IIS IDE.

Below is an example of a web.config. I did not include /CFIDE/scripts or /CFIDE/Graphdata.

If you do move the scripts directory as suggested make sure you update it as each update comes out.

Like
2012-11-29 07:21:56
2012-11-29 07:21:56

I do have another observation, question. It says to compare the MD5 checksum with the one on the Adobe download page. Unfortunately, there is no MD5 checksum on the Adobe ColdFusion download page. I cannot get CF10 to install on my Mac OSX (CF 9 installed fine) to save my life.

Like
2012-11-28 07:59:13
2012-11-28 07:59:13

Thank you for getting this published and to Pete Freitag for another great lockdown guide.

I do have two observations that I think should be clarified in the guide Section 4.1.6 and 4.2.6.

Section 4.1.6 doesn’t list any steps on how to change the JVM on Windows and leaves the reader to figure it out by referring to 4.2.6. Please list the steps or direct the reader to 4.2.6.

Section 4.2.6 says to use /usr/java/latest, but that could be problematic if the system has Java 7 installed into /latest since it is not yet supported on ColdFusion 10 or 9. Any update as to when it will be?

I understand the reasoning to point to /latest but think a note should added to check it is Java 6. Also a reference to http://helpx.adobe.com/coldfusion/kb/upgrading-java-coldfusion.html would also be helpful.

Like
Add Comment