Skip to content

Commit

Permalink
Merge pull request #2383 from ghen2/grep-3.8
Browse files Browse the repository at this point in the history
Fix another grep-3.8 warning on needlessly escaped exclamation mark.
  • Loading branch information
drwetter authored Aug 28, 2023
2 parents 27c7707 + 38a09d3 commit 1e7219f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3271,7 +3271,7 @@ sub_f5_bigip_check() {
ip="$(f5_hex2ip6 ${cookievalue:$offset:32})"
out "${spaces}F5 cookie (IPv6 pool in routed domain "; pr_svrty_medium "$routed_domain"; out "): "; pr_italic "$cookiename "; prln_svrty_medium "${ip}:${port}"
fileout "cookie_bigip_f5" "MEDIUM" "Information leakage: F5 cookie $cookiename $cookievalue is IPv6 pool member in routed domain $routed_domain ${ip}:${port}" "$cve" "$cwe"
elif grep -Eq '^\!.*=$' <<< "$cookievalue"; then
elif grep -Eq '^!.*=$' <<< "$cookievalue"; then
if [[ "${#cookievalue}" -eq 81 ]] ; then
savedcookies="${savedcookies} ${cookiename}=${cookievalue:1:79}"
out "${spaces}Encrypted F5 cookie named "; pr_italic "${cookiename}"; outln " detected"
Expand Down

0 comments on commit 1e7219f

Please sign in to comment.