ColdFusion 2018 Server Auto Lockdown Tool failed
I have created a new Windows Server 2016 and installed ColdFusion 2018 on it. Everything was working. Next I started going through the lockdown guide. I got to the part about running the auto lockdown tool (section 2.6). The tool ran fine but when I was reviewing folder permissions and other IIS settings I was not seeing everything that it should have done. After carefully looking through the log file I found that it encountered an error and then started rolling back changes. Now I have an unstable server with a mix of settings.
The log file seems to indicate that it failed when attempting to change the logon user for the additional ColdFusion services. Well I did not install the additional services as we don't need them. I guess the tool is not smart enough to bypass that and so it failed. Why?
Here is an excerpt from the log file:
2019-03-28 12:22:23 INFO - Folder permissions changed!
2019-03-28 12:22:23 INFO - Successfully setup file system permissions for ColdFusion!
2019-03-28 12:22:23 INFO - Setting up registry permissions for ColdFusion!
2019-03-28 12:22:23 INFO - Now starting to change registry permissions!
2019-03-28 12:22:24 INFO - ColdFusion version is: 2018
2019-03-28 12:22:24 INFO - Now getting all registry keys!
2019-03-28 12:22:24 INFO - All registry keys to change received!
2019-03-28 12:22:24 INFO - Registry permissions were successfully changed!
2019-03-28 12:22:24 INFO - Successfully changed the registry permissions for ColdFusion!
2019-03-28 12:22:24 INFO - Changing logon users for ColdFusion services
2019-03-28 12:22:24 INFO - Trying to change logon user for ColdFusion
2019-03-28 12:22:25 INFO - Changing for: ColdFusion2018Add-onServices
2019-03-28 12:22:25 INFO - [SC] OpenService FAILED 1060:
The specified service does not exist as an installed service.
2019-03-28 12:22:25 INFO - Changing for: ColdFusion 2018 Application Server
2019-03-28 12:22:26 INFO - [SC] ChangeServiceConfig SUCCESS
2019-03-28 12:22:26 INFO - Changing for: ColdFusion 2018 ODBC Agent
2019-03-28 12:22:26 INFO - [SC] OpenService FAILED 1060:
The specified service does not exist as an installed service.
2019-03-28 12:22:26 INFO - Changing for: ColdFusion 2018 ODBC Server
2019-03-28 12:22:26 INFO - [SC] OpenService FAILED 1060:
The specified service does not exist as an installed service.
2019-03-28 12:22:26 INFO - Failed to change the logon users for ColdFusion services!
2019-03-28 12:22:26 INFO - Rolling back the changes because of the Lockdown failure
2019-03-28 12:22:26 INFO - Reverting back the registry permissions changed during Lockdown
2019-03-28 12:22:28 INFO -
2019-03-28 12:22:28 INFO - Registry key not found. Caught NullReferenceException: Object reference not set to an instance of an object.
2019-03-28 12:22:28 INFO -
2019-03-28 12:22:28 INFO - SYSTEM\CurrentControlSet\Services\ColdFusion 2018 Application Server key permissions were changed.
2019-03-28 12:22:28 INFO -
2019-03-28 12:22:28 INFO - Registry key not found. Caught NullReferenceException: Object reference not set to an instance of an object.
2019-03-28 12:22:28 INFO -
2019-03-28 12:22:28 INFO - Registry key not found. Caught NullReferenceException: Object reference not set to an instance of an object.
2019-03-28 12:22:28 INFO -
2019-03-28 12:22:28 INFO - Registry key not found. Caught NullReferenceException: Object reference not set to an instance of an object.
2019-03-28 12:22:28 INFO - Successfully reverted back the registry permissions changed during Lockdown
2019-03-28 12:22:28 INFO - Reverting back the ColdFusion file system permissions to its original state
Why did it fail like this? Are the additional services required just to run this lock down tool? That doesn't make a lot of sense if you don't need them.
