From 49fcc3c6ce9e1bdd15f415ad7e7b5c727f2a7aa4 Mon Sep 17 00:00:00 2001 From: Bug Bounty Zip <133497067+BugBountyzip@users.noreply.github.com> Date: Tue, 5 Dec 2023 13:24:55 +0300 Subject: [PATCH 1/2] Update README.md Update README file --- Proxy/HTTP/README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Proxy/HTTP/README.md b/Proxy/HTTP/README.md index ee64c11..ab349b0 100644 --- a/Proxy/HTTP/README.md +++ b/Proxy/HTTP/README.md @@ -124,3 +124,23 @@ for (String param : parameterNames) { return false; ``` +## [HighlightUnencryptedHTTP.bambda](https://github.com/PortSwigger/bambdas/blob/main/Proxy/HTTP/OWASPTop25VulnerableParameters.bambda](https://github.com/BugBountyzip/bambdas_updates/blob/main/Proxy/HTTP/HighlightUnencryptedHTTP.bambda)) +### Highlight Unencrypted HTTP Traffic +#### Author: Tur24Tur / BugBountyzip (https://github.com/BugBountyzip) +```java +// Get the request object from the requestResponse +var request = requestResponse.request(); + +// Extract the URL from the request +var requestUrl = request.url(); + +// Check if the request URL starts with "http://" +if (requestUrl.startsWith("http://")) { + // URL is unencrypted, return true to highlight this request + return true; +} + +// URL is encrypted or does not match the criteria, return false +return false; + +``` From 19459a533e23780dbf175a309a0c646d3ff68a22 Mon Sep 17 00:00:00 2001 From: Bug Bounty Zip <133497067+BugBountyzip@users.noreply.github.com> Date: Tue, 5 Dec 2023 13:29:47 +0300 Subject: [PATCH 2/2] Update README.md fix the link --- Proxy/HTTP/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Proxy/HTTP/README.md b/Proxy/HTTP/README.md index ab349b0..1745d7f 100644 --- a/Proxy/HTTP/README.md +++ b/Proxy/HTTP/README.md @@ -124,7 +124,7 @@ for (String param : parameterNames) { return false; ``` -## [HighlightUnencryptedHTTP.bambda](https://github.com/PortSwigger/bambdas/blob/main/Proxy/HTTP/OWASPTop25VulnerableParameters.bambda](https://github.com/BugBountyzip/bambdas_updates/blob/main/Proxy/HTTP/HighlightUnencryptedHTTP.bambda)) +## [HighlightUnencryptedHTTP.bambda](https://github.com/BugBountyzip/bambdas_updates/blob/main/Proxy/HTTP/HighlightUnencryptedHTTP.bambda) ### Highlight Unencrypted HTTP Traffic #### Author: Tur24Tur / BugBountyzip (https://github.com/BugBountyzip) ```java