Skip to content

Commit d625ab5

Browse files
Update modules/exploits/multi/http/wingftp_null_byte_rce.rb
Co-authored-by: msutovsky-r7 <[email protected]>
1 parent 32f7754 commit d625ab5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/multi/http/wingftp_null_byte_rce.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def check
8989
)
9090
return CheckCode::Unknown('No response') unless res
9191

92-
uid = res.get_cookies.to_s[/UID=[^;]+/]
92+
uid = res.get_cookies_parsed.fetch('UID', nil)
9393
return CheckCode::Appears("UID cookie received: #{uid}") if uid
9494

9595
CheckCode::Safe('UID cookie not found; not vulnerable')

0 commit comments

Comments
 (0)