Merge branch 'fix-http-password-capture' of https://github.com/p-l-/zeek

* 'fix-http-password-capture' of https://github.com/p-l-/zeek:
  http: fix password capture when enabled

(cherry picked from commit c27e18631c)
This commit is contained in:
Arne Welzel 2024-08-30 18:56:24 +02:00 committed by Tim Wojtulewicz
parent 36e504a1e4
commit 75ef9ac233
4 changed files with 21 additions and 2 deletions

View file

@ -291,8 +291,8 @@ event http_header(c: connection, is_orig: bool, name: string, value: string) &pr
if ( /^[bB][aA][sS][iI][cC] / in value )
{
local userpass = decode_base64_conn(c$id, sub(value, /[bB][aA][sS][iI][cC][[:blank:]]+/, ""));
local up = split_string(userpass, /:/);
if ( |up| >= 2 )
local up = split_string1(userpass, /:/);
if ( |up| == 2 )
{
c$http$username = up[0];
if ( c$http$capture_password )