Is your ColdFusion Administrator Actually Public?
Every so often I get an email back from someone who ran HackMyCF.com saying something like this:
Your scanner says our ColdFusion Administrator is publicly accessible, but I don't think that's true. Am I missing something?
If you visit /CFIDE/administrator/ on their server you will get a 404. BUT if you visit /CFIDE/administrator/index.cfm on their server it resolves to the ColdFusion Administrator. Go ahead and take a minute to try this for yourself on your server, you may be surprised with the results.
This can happen when there is no /CFIDE folder in the given site's web root, and there is no virtual mapping for /CFIDE on the virtual host.
ColdFusion has setup itself with a wildcard mapping that allows it to inspect all requests and see if it want's to handle them, even if the given file does not exist. When you have the /CFIDE directory in the web root it will still serve CFM files under the /CFIDE directory.
So how do you prevent this?
There are a few ways to do this, the first way is to tell IIS to "Verify that file exists" before sending requests to JRun, though this option may interfere with other features in ColdFusion such as cfchart, flash remoting, etc.
Another way to block such requests is to setup an explicit block the /CFIDE/ or /CFIDE/administrator uri's in IIS. There are a few ways to do this, for IIS 7 the Request Filtering Plugin is a good choice, earlier versions might consider using UrlScan, or something like ISAPIRewrite.
There are probably a few more ways you can block this, and a few more reasons that cause this that are not outlined here, but the bottom line is to check it out, and make sure you have blocked it.
I haven't seen this issue on any of my Apache Linux installs but it doesn't mean it's not possible to show up there as well, it could just be a side effect of how I setup those servers.
Tweet
add to del.icio.us
| Tags: coldfusion, administrator, cfide, security, iis
Related Entries
- Howto Require SSL for ColdFusion Administrator - October 23, 2009
- Locking Down ColdFusion Presentation Slides - August 4, 2010
- ColdFusion wsconfig Hotfix CVE-2009-1876 is for Apache Only - August 20, 2009
- Path Traversal Vulnerability Security Hotfix for ColdFusion Released - August 12, 2010
- Using AntiSamy with ColdFusion - August 5, 2010
Trackbacks
Trackback Address: 750/53D63BE40FDB18C553EE11600ECE8395
Comments
On 05/11/2010 at 5:49:27 PM EDT Bradley Moore wrote:
1
Created empty folder /CFIDE/Administrator/ and perma-redirecting to site root via IIS6. Seems to do the trick witout rewriting.
On 08/04/2010 at 2:25:03 AM EDT Aaron Neff wrote:
2
Hi Pete,
First, thank you very much for your work on HackMyCF.com.
Second, I just wanted to also note a couple IIS7 settings that I've used (for the CFIDE/administrator directory of each site):
1) Authentication > Anonymous Authentication > Disabled
2) IPv4 Address and Domain Restrictions > Edit Feature Settings > Access for unspecified clients > Deny
Thanks!, -Aaron
On 08/04/2010 at 12:52:34 PM EDT Pete Freitag wrote:
3
Thanks for the feedback Aaron!
On 08/06/2010 at 1:24:51 AM EDT Aaron Neff wrote:
4
You're very welcome Pete!
Post a Comment
Recent Entries
- Howto Install and Run the Android Emulator
- jQuery UI Autocomple IE 6 Select List z-Index Issues
- Path Traversal Vulnerability Security Hotfix for ColdFusion Released
- Using AntiSamy with ColdFusion
- Writing Secure CFML Slides from CFUnited 2010
- Locking Down ColdFusion Presentation Slides
- Cross Domain Data Theft using CSS
- Using jQuery UI Autocomplete with Hidden ID's
First, thank you very much for your work on HackMyCF.com.
Second, I just wanted to also note a couple IIS7 settings that I've used (for the CFIDE/administrator directory of each site):
1) Authentication > Anonymous Authentication > Disabled
2) IPv4 Address and Domain Restrictions > Edit Feature Settings > Access for unspecified clients > Deny
Thanks!, -Aaron







