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 4cXWKx1293z377j for ; Thu, 25 Sep 2025 11:13:25 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail01.haj.ipfire.org", Issuer "R13" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4cXWKp46hfz335S for ; Thu, 25 Sep 2025 11:13:18 +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 4cXWKn4Jjkz40Z; Thu, 25 Sep 2025 11:13:17 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1758798797; 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=v5fyhUSHMHMt4X+Pmob5g9b04JvwBhdZTiryZnkN4P4=; b=KMCATzOI7VQmBxH5o4rj0Y/k0M71hOc56BIXTLI2P9nbxpFDy5FoqcvFNO9vIkTUf5L0KH oMQX7v5YkUJOjrDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1758798797; 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=v5fyhUSHMHMt4X+Pmob5g9b04JvwBhdZTiryZnkN4P4=; b=WEqOTYvOzOeSV5OJMBYEP05YTqRi1lELQGqPyo5HnlJmsMb6Uhjuyn44BSRhtgMdI7m5lZ paEQV4uA3kmEKvaFXj933yYqJaxGsd/ujDZYrNYdUMyxZNkCcAVmRczUTuNXhWSBGUrwcm etmOJYuCsSrJYs2aDlywk8C7ct24OmpiXgQagCGpPSw8gTiiSMdqCVbqifj94V43bidihz BF0HZBYaGYfROvAWCq3fuRd3ojBxMsMik66AiW1FFNtJCIEAsCN7z3u/Ts8UQJGrzwIwhV 5h2MULdkbH3lAhvsgVSSiC8ZeDEIYYsPmGY5VzOZ34S2bKWc0YmgBEDybqYDfA== From: Adolf Belka To: development@lists.ipfire.org Cc: Adolf Belka Subject: [PATCH 12/16] config.dat: Fixes bug 13890 Date: Thu, 25 Sep 2025 13:12:48 +0200 Message-ID: <20250925111252.11893-12-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 13890 - config.dat REMOTELOG_ADDR Stored Cross-Site Scripting Signed-off-by: Adolf Belka --- html/cgi-bin/logs.cgi/config.dat | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/html/cgi-bin/logs.cgi/config.dat b/html/cgi-bin/logs.cgi/config.dat index aed0db9cf..e4b173ffb 100644 --- a/html/cgi-bin/logs.cgi/config.dat +++ b/html/cgi-bin/logs.cgi/config.dat @@ -1,13 +1,23 @@ #!/usr/bin/perl -# -# IPFire CGIs -# -# This code is distributed under the terms of the GPL -# -# (c) The IPFire Team -# -# $Id: config.dat,v 1.2.2.10 2005/06/14 12:32:07 eoberlander Exp $ -# +############################################################################### +# # +# IPFire.org - A linux based firewall # +# 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 # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### use strict; @@ -143,6 +153,7 @@ END &Header::closebox(); &Header::openbox('100%', 'left', $Lang::tr{'remote logging'}); +$logsettings{'REMOTELOG_ADDR'} = &Header::escape($logsettings{'REMOTELOG_ADDR'}); print < -- 2.51.0