# frozen_string_literal: true ## # This file is part of WhatWeb and may be subject to # redistribution and commercial restrictions. Please see the WhatWeb # web site for more information on licensing and terms of use. # http://www.morningstarsecurity.com/research/whatweb ## # Version 0.3 # 2012-02-05 # # Added header match. Updated matches. Updated version detection. ## # Version 0.2 # 2011-04-25 # # Added cookie matches ## WhatWeb::Plugin.define "ColdFusion" do @author = "Brendan Coles " # 2010-08-15 @version = "0.3" @description = "Adobe ColdFusion application server and software enables developers to rapidly build, deploy, and maintain robust Internet applications for the enterprise." @website = "http://www.adobe.com/products/coldfusion/" # ShodanHQ results as at 2012-02-05 # # 6,536 for page-completion-status # 529 for page-completion-status Abnormal # Google results as at 2011-04-25 # # 30 for intitle:"ColdFusion Administrator Login" # 72 for intitle:"Login / Admin Area" ext:cfm # Dorks # @dorks = [ 'intitle:"ColdFusion Administrator Login"' ] # Matches # @matches = [ # Admin Page # Title { text: ' ColdFusion Administrator Login' }, # Admin Page # Meta Author { regexp: // }, # Admin Page # JavaScript { text: " { document.write(\"\");}" }, # Admin Page # Form { text: '
' }, # Admin Page # input name="cfadminPassword" { text: '' }, # Admin Page # Copyright text { text: ' Macromedia, the Macromedia logo, Macromedia ColdFusion and ColdFusion are
' }, # Admin Page # Logo HTML { text: ' ColdFusion MX' }, # /CFIDE/administrator/images/loginbackground.jpg # Version 9.x { url: '/CFIDE/administrator/images/loginbackground.jpg', md5: "596b3fc4f1a0b818979db1cf94a82220", version: "9.x" }, # /CFIDE/administrator/images/AdminColdFusionLogo.gif # Version 7.x { url: "/CFIDE/administrator/images/AdminColdFusionLogo.gif", md5: "620b2523e4680bf031ee4b1538733349", version: "7.x" }, # page-completion-status Header { search: "headers[page-completion-status]", certainty: 75, regexp: /(Abnormal|Normal)/ }, # Set-Cookie # /CFAUTHORIZATION_cfadmin=/ { search: "headers[set-cookie]", regexp: /CFAUTHORIZATION_cfadmin=/ }, ] # Passive # def passive(target) m = [] # CFID and CFTOKEN cookie if target.headers["set-cookie"] =~ /CFID=/ && target.headers["set-cookie"] =~ /CFTOKEN=/ m << { name: "CFID and CFTOKEN cookie" } end # Version detection using admin panel text if /Enter your RDS or Admin password below/.match?(target.body) if target.body =~ /Version:[\s]*([^<]+)<\/strong>
/ m << { version: $1.to_s.tr(',', ".") } end end # Return passive matches m end end