From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4cXWKq5zZTz3341 for ; Thu, 25 Sep 2025 11:13:19 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [IPv6:2001:678:b28::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R13" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4cXWKm2WFCz32dW for ; Thu, 25 Sep 2025 11:13:16 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4cXWKl1gQlz3P3; Thu, 25 Sep 2025 11:13:15 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1758798795; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xP6MWLJc80+WBNer4mGbtlG/9FtReZPOhtGZY1QrgCM=; b=oDk/CPbXrLKxTQhFA1LAThahC3S3pl59Z5NJ1BbVzkofEq1wfkd4R2UAFNPbBEs2yaIE9x YyBBrJJS2lVZsqAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1758798795; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xP6MWLJc80+WBNer4mGbtlG/9FtReZPOhtGZY1QrgCM=; b=wtQeDkBUwKWLbZCJIoHFuSC18FOlF8W+0fgqSVZoQqzeC24lcWd+z2D4YzqbK4C2yT2Obp n1wFRxi34Yak50+gNDA/Et2qDOtOcg4KsOFFIoyFFZI7220icYVOCvNm9824y/UfoREDJW hSP8f/l1oa5MWUN1DxcQtvGnY5SM9fLUt4+wwMJZYWLF8dscYui0Z+FBspIH2I2f8M0lk4 fvmSt/cO5dnS4XyaWsutvyg67ciODcEf7lwbkYuAJL+pOU17WOe0HQZcFw13B8zk+imy5F NWiNjyMpYfMvWRV9N6HeCJUguElJ51MSwuNFALziUWyDhBCGzpEvB0tpxVVxSw== From: Adolf Belka To: development@lists.ipfire.org Cc: Adolf Belka Subject: [PATCH 02/16] ids.cgi: Fixes bug 13878 Date: Thu, 25 Sep 2025 13:12:38 +0200 Message-ID: <20250925111252.11893-2-adolf.belka@ipfire.org> In-Reply-To: <20250925111252.11893-1-adolf.belka@ipfire.org> References: <20250925111252.11893-1-adolf.belka@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fixes: bug 13878 - IGNORE_ENTRY_REMARK Stored Cross-Site Scripting Signed-off-by: Adolf Belka --- html/cgi-bin/ids.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 994872564..9c6b393f6 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2020 IPFire Team # +# Copyright (C) 2007-2025 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -105,7 +105,7 @@ if (($cgiparams{'WHITELIST'} eq $Lang::tr{'add'}) || ($cgiparams{'WHITELIST'} eq # Assign hash values. my $new_entry_address = $cgiparams{'IGNORE_ENTRY_ADDRESS'}; - my $new_entry_remark = $cgiparams{'IGNORE_ENTRY_REMARK'}; + my $new_entry_remark = &Header::escape($cgiparams{'IGNORE_ENTRY_REMARK'}); # Read-in ignoredfile. &General::readhasharray($IDS::ignored_file, \%ignored) if (-e $IDS::ignored_file); -- 2.51.0