Does The World Know That You Use ColdFusion?

Posted August 15, 2007 at 7:18 PM by Ben Nadel

Tags: ColdFusion

It was recently pointed out to me that my site is showing up on www.builtwith.com as being run by ASP.NET. I didn't know what would flag this since the only file extensions that I use on my site are HTM and CFM. David Epler pointed out to me that this value was probably being taken from my server's response header, X-Powered-By:


 
 
 

 
X-Powered-By ASP.NET  
 
 
 

I tried to update the header value using ColdFusion's CFHeader tag:

  • <!--- Set ColdFusion application server. --->
  • <cfheader
  • name="x-powered-by"
  • value="ColdFusion MX7"
  • />

... but this only added a x-powered-by value (not replaced the existing value):


 
 
 

 
X-Powered-By ColdFusion MX7  
 
 
 

Even if I could replace the existing value, I am not sure what the proper value should even be. It might be safer to grab the value out of the SERVER scope and ColdFusion product name:

  • <!---
  • Set ColdFusion application server as it is
  • defined by the actual install setup.
  • --->
  • <cfheader
  • name="x-powered-by"
  • value="#SERVER.ColdFusion.ProductName#"
  • />

This will change depending on your installation (or maybe not - I can only test on one type of server).


 
 
 

 
X-Powered-By ColdFusion Server  
 
 
 

Now, does this stuff really matter at all? No, not in the least, but come on, have some pride - get your ColdFusion support out there! Who knows, this might even sway some stats that keep getting published about ColdFusion.


You Might Also Be Interested In:



Reader Comments

Aug 15, 2007 at 8:16 PM // reply »
211 Comments

Looks like IIS will always report ASP.NET - I'm wondering if you can even disable the dlls or if IIS will break.


Aug 15, 2007 at 8:41 PM // reply »
6 Comments

Go into the http headers tab on the site (or the global site) and change it to Coldfusion... nice and simple :-)


Aug 15, 2007 at 9:35 PM // reply »
44 Comments

Yeah, changing it (or removing it >:P) in IIS will do the trick!

@Ben: You could even add Server.ColdFusion.ProductLevel and Server.ColdFusion.ProductVersion to your output (although ProductVersion is a comma separated list, so you might want to output the first 3 items in the list separated by periods instead). Then the output would look like:

ColdFusion Server Standard 7.0.2
or
ColdFusion Server Standard 8.0.0

It's interesting to think that IIS's default behaviour when .NET is installed could be bumping up the reported use of .NET, even when it's not being used...


Ian
Aug 15, 2007 at 11:37 PM // reply »
7 Comments

Just updated our IIS settings since we only use CF.


Aug 16, 2007 at 12:55 AM // reply »
6 Comments

We should all use the same string... maybe Adobe can put it in their next updater for 7 and 8 (too late for 6.x)

eg:

Adobe Coldfusion (v8.0 standalone)
Adobe Coldfusion (v6.1 war)

What do you think?


Aug 16, 2007 at 12:55 AM // reply »
6 Comments

or

Adobe Coldfusion Standard (v8.0 standalone)


Aug 16, 2007 at 1:32 AM // reply »
10 Comments

he he - just noticed that, with this and the previous post in your blog, the Google ads on your recent blog entries page started advertising .net charting....


Aug 16, 2007 at 6:07 AM // reply »
42 Comments

Production web servers should be configured to reveal as little about themselves as possible - you certainly don't want your CF patch level advertised (unless you are trying to draw attention to the fact you are easily p0w3d).


Aug 16, 2007 at 7:44 AM // reply »
10,640 Comments

@Tom,

Would you recommend not doing this then? I know so little about server-administration that telling people too much about the server would never even occur to me.... however, as a ColdFusion enthusiast, it just doesn't sit right that I am being represented as ColdFusion - I hope my pride doesn't lead to my downfall :)


Ian
Aug 16, 2007 at 8:15 AM // reply »
7 Comments

Couldn't you just say "ColdFusion" and leave it at that?


Aug 16, 2007 at 8:21 AM // reply »
1 Comments

Adobe Coldfusion (v6.1 war)! 100%


Aug 16, 2007 at 8:26 AM // reply »
20 Comments

I would second the notion of revealing as little about your server as possible, but it makes little difference. I would say that more people would try exploits based on the fact that you run IIS 6.0 (as reported by your server) than CFMX 7. And either way, hiding that information will not prevent exploits.

Assuming you have access to the IIS snap-in (don't know if you're on shared hosting or not), right-click on the webspace name, and go to "Properties". Go to the "Headers" tab, and remove the offending X-Powered-By line in the "Custom Headers" tab. If you want to keep in the ColdFusion MX7 X-Powered-By, that's likely not a problem, but I wouldn't go farther than that.


Aug 16, 2007 at 9:04 AM // reply »
5 Comments

It's not just IIS/.NET, CFML running on a LAMP server will likely identify itself as PHP in the Server header (luckily Apache makes it relatively easy to change this).


Aug 16, 2007 at 10:49 AM // reply »
42 Comments

@Ben: "Would you recommend not doing this then?"
If you *really* want to, saying 'ColdFusion' doesn't give much more away than a '.cfm' in your URL.

Anything more is just increasing the information the bad guys have about you, and that's very rarely worthwhile, even for some 'higher good' of driving CF up some sites rankings.


Aug 16, 2007 at 10:54 AM // reply »
2 Comments

Actually, playing with this a bit more. Tried out houseoffusion.com through builtwith and it reports back ColdFusion for the framework. House of Fusion does not report a X-Powered-By, so what ever they are analyzing to report ColdFusion is probably also tied to session cookies CFGLOBALS, CFID, CFTOKEN or possibly generating a request for Application.cfm.

Personally, I agree with some of the other posts. I try to report back as little information regarding my setup. But with hosting companies have very little control over it. Think the idea of adding just "ColdFusion" to the X-Powered-By is a good idea, but if Adobe implemented it I would want to be able to configure it via the ColdFusion Administrator.


Aug 16, 2007 at 9:19 PM // reply »
44 Comments

If there was a CF version specific exploit I'm sure hackers would try it on every CF server they could get their hands on anyway, regardless of your server version number... If they see a .cfm extension then that's good enough to make an attempt at an attack, IMO. They might also be thankful for the recent lists published of top-rated CF sites to gain maximum exposure :P

Also on version numbers, check out some info about www.php.net for example, which includes PHP version numbers in what the web server is reporting:
http://toolbar.netcraft.com/site_report?url=http://www.php.net

But I do agree - if you are at all worried, don't publish it.


Aug 17, 2007 at 4:15 AM // reply »
6 Comments

It's pretty easy to see what version you are running anyway. You just need to have a look at the web exposed parts of /cfide/ directory and compare it to a known source to find the version someone is running, you can even tell some of the updaters from the code there.

It's a simple:
X-Powered-By="Adobe Coldfusion 8 Standard"
X-Powered-By="Adobe Coldfusion 7 Enterprise"

Exposing this kind of information is no more risky than keeping the .cfm extension after your filenames. It's ridiculous to say because you have exposed a header and ignored the fact you have a publicly accessable cfide directory and .cfm extension that you have given any more away then what is already blatantly obvious. Your attack surface is no larger for giving this information. As of version 8 all of the attack surface elements are present in both standard and enterprise anyway, so this information is of no further risk.


Aug 17, 2007 at 4:48 AM // reply »
5 Comments

Chris you are making the assumption that we all leave our CFIDE directories publicly accessible.


Aug 17, 2007 at 7:20 AM // reply »
10,640 Comments

Not to sound cheesy, but it's more fun to live with pride than live with fear :) And, I am proud to be using ColdFusion.


Aug 18, 2007 at 1:46 AM // reply »
44 Comments

That's the spirit Ben :) Hehe...


Aug 15, 2009 at 7:37 AM // reply »
1 Comments

I gave up on coldfusion ages ago, its applications just wernt diverse enough



Post A Comment

Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.

Please review the following issues:

Author Name:


Author Email:

Author Website:

Comment:

Supported HTML tags for formatting: <strong>bold</strong>   <em>italic</em>   <code>code</code>







  • Help Wanted - Find Your Next ColdFusion Job
InVision App - Prototyping Made Beautiful With Prototyping Tools Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
Feb 12, 2012 at 3:37 AM
Learning ColdFusion 8: CFImage Part III - Watermarks And Transparency
Hi Ben, Just to ask currently it is placed bottom right corner, if i need to replace the same rendered image on the bottom left side or in the bottom center, how that can be calculated. bottom ce ... read »
Feb 11, 2012 at 9:29 PM
Use jQuery's SlideDown() With Fixed-Width Elements To Prevent Jumping
I can't say how glad I am that I found your post. Thank you very much. ... read »
Feb 10, 2012 at 7:21 PM
jQuery AJAX Strips Script Tags And Inserts Them After Parent-Most Elements
Update! Instead of $(eval(options.insertAfter)).after(data['insertData']); I now use: var ajaxNode = document.createElement('span'); var parent = $(eval(options.insertAfter))[0].parentNode; ... read »
Feb 10, 2012 at 6:18 PM
jQuery AJAX Strips Script Tags And Inserts Them After Parent-Most Elements
encountered this same, what I consider, jQuery bug last week. I'm building a site in which I load some content via AJAX. This content contains Linkedin share button placeholders which Linkedin API ne ... read »
Feb 10, 2012 at 11:30 AM
Cross-Origin Resource Sharing (CORS) AJAX Requests Between jQuery And Node.js
After you understand the concepts here, this is an awesome cheatsheet for enabling CORS in just about anything http://enable-cors.org/ ... read »
JM
Feb 10, 2012 at 9:10 AM
My Safari Browser SQLite Database Hello World Example
@Amy, Here is a very good tutorial on how to use JOIN: http://www.sqltutorial.org/sqljoin-innerjoin.aspx ... read »
Feb 10, 2012 at 4:42 AM
Building A Twitter-Inspired RESTful API Architecture In ColdFusion
This is great, very useful Ben. I spotted a small typo in the api.cgm listing: <cfthrow type="Unauthroized" /> Cheers Stefan ... read »
Feb 9, 2012 at 10:35 PM
CFDirectory Filtering Uses Pipe Character For Multiple Filters (Thanks Steve Withington)
I was wondering if there would be a filter you could apply so that you got everything but what you included in the filter. As in show me all docs that are not a .pdf. ... read »