Skip to content

Commit

Permalink
Check for records before matching a string.
Browse files Browse the repository at this point in the history
  • Loading branch information
keithjjones committed Sep 21, 2021
1 parent 9f059ae commit 1defb48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/omigod.zeek
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ event http_all_headers(c: connection, is_orig: bool, hlist: mime_header_list)
return;

# The exploit is triggered when a payload XML is POSTed
if (c$http$method != "POST")
if ( !c?http || !c$http?method || c$http$method != "POST")
return;

# Throw out small list of headers
Expand Down

0 comments on commit 1defb48

Please sign in to comment.