From 3932d37558c7da51bcec5989e26b3f270c5d9d1e Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 02:49:40 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A1=EF=B8=8F=20Sentinel:=20[MEDIUM]=20?= =?UTF-8?q?Fix=20Log=20Injection=20(CRLF)=20in=20main=20block?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: ManupaKDU <95234271+ManupaKDU@users.noreply.github.com> --- testping1.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testping1.py b/testping1.py index fa70655..5de1f96 100644 --- a/testping1.py +++ b/testping1.py @@ -275,7 +275,8 @@ def is_reachable(ip, timeout=1): raise ValueError(f"Scan range too large ({total_ips} IPs). Maximum 256 IPs allowed per scan.") except (ValueError, TypeError, RecursionError) as e: - logging.error(f"Invalid scan range configuration: {e}") + # 🛡️ Sentinel: Sanitize log input to prevent CRLF/Log Injection + logging.error(f"Invalid scan range configuration: {repr(str(e))}") exit(1) # ⚡ Bolt: Optimize sequential IP address generation