MACROMEDIA COLDFUSION 5 - INSTALING AND CONFIGURING SERVER Informations techniques

Naviguer en ligne ou télécharger Informations techniques pour Serveurs MACROMEDIA COLDFUSION 5 - INSTALING AND CONFIGURING SERVER. MACROMEDIA COLDFUSION 5 - INSTALING AND CONFIGURING SERVER System information Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer

Résumé du contenu

Page 1 - Pete Freitag

ColdFusion 11 Lockdown Guide Pete Freitag

Page 2 - Contents

Adobe documentation - Confidential Next select only the Sub-components which are required for your application(s). Check each servlet that is not need

Page 3

Adobe documentation - Confidential Select the Built-in web server, we will run the web server configuration utility later in this guide to connect Col

Page 4

Adobe documentation - Confidential For Administrator Credentials, select a unique username (not admin) and a strong password. Adobe documentation -

Page 5

Adobe documentation - Confidential Install ColdFusion Hotfixes and Updates Login to the ColdFusion administrator via the built-in web server. For exa

Page 6 - Introduction

Adobe documentation - Confidential Create User Accounts Create a windows user account (in Computer Management) for ColdFusion to run as. In this guide

Page 7 - ColdFusion on Windows

Adobe documentation - Confidential Next create a user for the IIS Application pool identity. For each user created in this section right click and sel

Page 8

Adobe documentation - Confidential Setup Permissions for ColdFusion User Grant the user you created for ColdFusion to run as (cfuser in our example)

Page 9

Adobe documentation - Confidential For maximum security you should consider a more detailed permission structure for the ColdFusion installation di

Page 10

Adobe documentation - Confidential Folder Principal Permission {cf.root}/config/wsconfig/ IUSR, iisuser Read & execute List folder contents Read {

Page 11

Adobe documentation - Confidential ColdFusion service, for example ColdFusion 11 Application Server. Right click on each key and select Permissions an

Page 12

Adobe documentation - Confidential Contents Introduction ...

Page 13

Adobe documentation - Confidential Specify Log On User for ColdFusion Services Open the Services Manager and change the user the service runs as to

Page 14 - Create User Accounts

Adobe documentation - Confidential Adobe documentation - Confidential

Page 15

Adobe documentation - Confidential Setup Web Root Permissions Right click on the web site partition folder (eg d:\web-sites\), and select Properties.

Page 16

Adobe documentation - Confidential Principal (User / Group) Permissions IUSR (the anonymous authentication account) Read & execute List folder con

Page 17

Adobe documentation - Confidential Check Replace all child object permission entries with inheritable permission entries from this object and click O

Page 18

Adobe documentation - Confidential • Application Development: ISAPI Filters • Management Tools: IIS Management Console If you use WebSockets you shou

Page 19

Adobe documentation - Confidential Configure IIS Open IIS, expand Sites and remove any sites that you do not need, for example the Default Web Site.

Page 20

Adobe documentation - Confidential Table 2.10.1 : CFIDE URIs URI Purpose Safe to Block /CFIDE/administrator ColdFusion Administrator Yes, we will cre

Page 21

Adobe documentation - Confidential URI Purpose Safe to Block /CFIDE/multiservermonitor-access-policy.xml Used to set a policy for allowing viewing the

Page 22 - Setup Web Root Permissions

Adobe documentation - Confidential URI Purpose Safe to Block /CFIDE/services Contains CFCs that can act as a service layer to Flex, or other client si

Page 23

Adobe documentation - Confidential Run the ColdFusion Web Server Configuration Tool ...

Page 24

Adobe documentation - Confidential URI Purpose Safe to Block /flex2gateway Flex Remoting Only if Flex Remoting is not used. /cfform-internal Used for

Page 25

Adobe documentation - Confidential Configure Application Pool Defaults Click on Application Pools, remove any unused or unnecessary Application Pools

Page 26 - Configure IIS

Adobe documentation - Confidential Create ColdFusion Administrator Web Site In this section we will create an IIS site which will be used exclusively

Page 27

Adobe documentation - Confidential Click the Test Settings… button to verify that permissions are setup correctly. Consider disabling anonymous acces

Page 28

Adobe documentation - Confidential If you blocked /CFIDE globally in section 2.10, add request filtering rules to block all the /CFIDE uri’s except /C

Page 29

Adobe documentation - Confidential Run the ColdFusion Web Server Configuration Tool Right click on wsconfig.exe, located in {cf.instance.root}/runt

Page 30

Adobe documentation - Confidential Sites that use the ColdFusion WebSocket proxy must change the .NET Framework Version in Application Pool Settings

Page 31

Adobe documentation - Confidential Add IP Restrictions to /CFIDE In IIS expand the ColdFusion Administrator site you created and select the CFIDE fol

Page 32

Adobe documentation - Confidential Before editing, create a backup of the jvm.config file located in the {cf.instance.root}/bin/ directory. Open the

Page 33

Adobe documentation - Confidential ColdFusion on Linux This section covers installation of ColdFusion on Linux with Apache, Windows/IIS readers may s

Page 34 - Add Sites to IIS

Adobe documentation - Confidential Server Settings > Mappings ...

Page 35

Adobe documentation - Confidential # adduser -g webusers -s /sbin/nologin -M -c ColdFusion cfuser Specify a strong password for the new user: # pass

Page 36

Adobe documentation - Confidential Click on Server Updates > Updates and then select the latest hotfix, and click Download. Verify the integrity

Page 37

Adobe documentation - Confidential # fgrep LoadModule /etc/httpd/conf/httpd.conf Some modules that you may be able to remove (or comment out by plac

Page 38

Adobe documentation - Confidential SELinux requires permissions to allow apache to read the web root, we will copy the permissions from /var/www (the

Page 39 - ColdFusion on Linux

Adobe documentation - Confidential <Context path="/" docBase="/opt/cf11/cfusion/wwwroot" WorkDir="/opt/cf11/cfusio

Page 40 - ColdFusion Installation

Adobe documentation - Confidential RedirectMatch 404 (?i).*/WSRPProducer.* Restart apache and test URIs that should be blocked. Specify permission

Page 41 - Configure Apache

Adobe documentation - Confidential /opt/coldfusion10/config/wsconfig/1/mod_jk.so: failed to map segment from shared object: Permission denied If you

Page 42

Adobe documentation - Confidential Next we will use the semanage utility (you may need to run yum install policycoreutils-python) to add port 8014 to

Page 43

Adobe documentation - Confidential # /usr/bin/htdigest -c /etc/httpd/cfadmin.digest.pwd cfadmins petefreitag The above command will create or overwri

Page 44

Adobe documentation - Confidential To update using ColdFusion Administrator: click on Server Settings > Java and JVM and then add /usr/java/latest/

Page 45 - Install Apache Connector

Adobe documentation - Confidential Optionally Remove ASP.NET ...

Page 46

Adobe documentation - Confidential ColdFusion Administrator Settings In this section several recommendations are made for ColdFusion server settings.

Page 47

Adobe documentation - Confidential Setting Default Recommendation Description Prefix serialized JSON with Unchecked: // Checked: // This setting helps

Page 48 - Update Java Virtual Machine

Adobe documentation - Confidential Setting Default Recommendation Description Watch configuration files for changes (check every N seconds) Unchecked

Page 49 - Add umask to startup script

Adobe documentation - Confidential Setting Default Recommendation Description Default ScriptSrc Directory /CFIDE/scripts/ /somewhere-else/ See section

Page 50

Adobe documentation - Confidential Setting Default Recommendation Description Maximum number of POST request parameters 100 50 or as low as your appli

Page 51

Adobe documentation - Confidential Server Settings > Request Tuning The Request Tuning settings can help mitigate the ability to perform a succes

Page 52

Adobe documentation - Confidential Setting Default Recommendation Description Maximum number of simultaneous CFC function requests 15 1 if not using R

Page 53

Adobe documentation - Confidential Setting Default Recommendation Description Default Storage Mechanism for Client Sessions Cookie None / Cookie If ap

Page 54

Adobe documentation - Confidential Setting Default Recommendation Description Cookie Timeout 1440 Minutes -1 By setting to -1 ColdFusion will set the

Page 55

Adobe documentation - Confidential Setting Default Recommendation Description Enable WebSocket Service Unchecked Unchecked if not needed. Disable the

Page 56

Adobe documentation - Confidential Introduction The ColdFusion 11 Server Lockdown Guide is written to help server administrators secure their ColdFus

Page 57

Adobe documentation - Confidential Data & Services > PDF Service If the PDF Service is used to generate PDFs containing sensitive data ensure

Page 58 - Server Settings > Mail

Adobe documentation - Confidential Setting Default Recommendation Description Maximum number of archives 10 Larger When a log file reaches the Maxi

Page 59

Adobe documentation - Confidential Security > Administrator Setting Default Recommendation Description ColdFusion Administration Authentication Se

Page 60

Adobe documentation - Confidential Security > Allowed IP Addresses Setting Default Recommendation Description Allowed IP Addresses for Exposed S

Page 61 - Event Gateways > Settings

Adobe documentation - Confidential Setting Default Recommendation Description Check for Updates every N days Unchecked Checked Setup email alerts to b

Page 62 - Security > User Manager

Adobe documentation - Confidential Additional Lockdown Measures The steps outlined in this section can provide additional security but may require s

Page 63

Adobe documentation - Confidential To Configure the Builtin Web Server to listen on a single IP Address By default the connector will listen on all

Page 64

Adobe documentation - Confidential Consider adding additional URIs to this file (see table 2.10.1 and 2.10.2), also consider restricting all of /CF

Page 65

Adobe documentation - Confidential Blocking by File Extension on IIS Click on the root node of IIS and then double click Request Filtering. Click on

Page 66 - Configure Sandbox Security

Adobe documentation - Confidential <Server port="8007" shutdown="SHUTDOWN"> Change 8007 to -1 to disable this feature, or to

Page 67 - Lockdown File Extensions

Adobe documentation - Confidential ColdFusion on Windows This section covers the installation and configuration of ColdFusion 11 on a Windows 2012 se

Page 68 - Optionally Remove ASP.NET

Adobe documentation - Confidential All JEE web applications have a file in the WEB-INF directory called web.xml this file defines the servlets and ser

Page 69

Adobe documentation - Confidential Servlet Mapping Servlet Purpose *.cfml *.CFML *.Cfml CfmServlet Handles execution of CFML contained in files with t

Page 70

Adobe documentation - Confidential Servlet Mapping Servlet Purpose /rest/* CFRestServlet Used for rest web services *.hbmxml CFForbiddenServlet Used

Page 71

Adobe documentation - Confidential the files located in {cf.instance.home}/runtime/conf/ contain important configuration files utilized by the Tomcat

Page 72

Adobe documentation - Confidential <web-resource-name>POST ONLY SSL</web-resource-name> <url-pattern>

Page 73 - Restricting HTTP Verbs

Adobe documentation - Confidential Patch Management Procedures Staying up to date with patches is essential to maintaining security on the server. T

Page 74 - Limit Request Size

Adobe documentation - Confidential Appendix A: Sources of Information A.1 - Microsoft Security Compliance Management Toolkit: http://www.microsoft.co

Page 75 - Patch Management Procedures

Adobe documentation - Confidential © 2014 Adobe Systems Incorporated. All rights reserved. Adobe documentation. This guide is licensed for use under t

Page 76

Adobe documentation - Confidential Run the installer exe. On the Installer Configuration view select Server configuration unless you are deploying to

Page 77

Adobe documentation - Confidential Select Production Profile + Secure Profile, and specify IP addresses which may access ColdFusion Administrator. T

Commentaires sur ces manuels

Pas de commentaire