From 6d4d097b70ee723b5c44ef5e98c0ff0bbab80e4c Mon Sep 17 00:00:00 2001 From: Hannah-PortSwigger <58562826+Hannah-PortSwigger@users.noreply.github.com> Date: Wed, 8 Jan 2025 10:57:36 +0000 Subject: [PATCH] Update DetectWeakXSSProtectionHeader.bambda Remove redundant header check. --- Filter/Proxy/HTTP/DetectWeakXSSProtectionHeader.bambda | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Filter/Proxy/HTTP/DetectWeakXSSProtectionHeader.bambda b/Filter/Proxy/HTTP/DetectWeakXSSProtectionHeader.bambda index 97ac957..b025df4 100644 --- a/Filter/Proxy/HTTP/DetectWeakXSSProtectionHeader.bambda +++ b/Filter/Proxy/HTTP/DetectWeakXSSProtectionHeader.bambda @@ -10,8 +10,7 @@ **/ -return requestResponse.hasResponse() && - requestResponse.response().hasHeader("X-XSS-Protection") && +return requestResponse.hasResponse() && requestResponse.response().headers().stream() .filter(header -> header.name().equalsIgnoreCase("X-XSS-Protection")) .anyMatch(header -> {