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 4cXWKw2L8Zz36XV for ; Thu, 25 Sep 2025 11:13:24 +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 4cXWKm4Kqgz3028 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 4cXWKm2VMtz3X8; Thu, 25 Sep 2025 11:13:16 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1758798796; 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=vjfTnTW+ew5EFlPWYuDLpJO3omI19FYvGnl2dV/zJy4=; b=CU/ecof+gvvrdLxwo0p2HOKH6jM3imoIGfclb3SfHEwsQWZnNdWewcMm/Xo70ulrgXIcd0 e8GFhvfaqV2bMZAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1758798796; 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=vjfTnTW+ew5EFlPWYuDLpJO3omI19FYvGnl2dV/zJy4=; b=US5YMC6DH1nTBpbvPs7HwZtk0YK9UYcXK3z09C5fLa/TUS08HuACCAEIODYbbws6RAEOpU iGFrww42mtK0lyeTVAZHyTMgp+4VwQI39kcimrjGyPt7LtE1m30josLt3J7zLrFweTp0+x jhGZp/kLO4JnqLILA4vZvxvpcfLkkzolkYF5oBSIg8yZJ8n5gKUB/MQT3oFBeUNa9TQgCy dDwsGqRyBE+QqCzAgsdERV97UQiY4NLt5UGmPXPOZ2FypKFtPW84KiRY8BSKx8LkFm+kyl 7DZ1f2E5KQ17YJ0/Z2/DZBm++NLClv7C+O/ytLqyiG5DdHznrAfE6peq1RVQqg== From: Adolf Belka To: development@lists.ipfire.org Cc: Adolf Belka Subject: [PATCH 07/16] time.cgi: Fixes bug 13883 Date: Thu, 25 Sep 2025 13:12:43 +0200 Message-ID: <20250925111252.11893-7-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 13883 - time.cgi UPDATE_VALUE Stored Cross-Site Scripting Signed-off-by: Adolf Belka --- html/cgi-bin/time.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/cgi-bin/time.cgi b/html/cgi-bin/time.cgi index 04c1e771f..d465354bb 100644 --- a/html/cgi-bin/time.cgi +++ b/html/cgi-bin/time.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2010 IPFire Team # +# Copyright (C) 2010-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 # @@ -78,6 +78,7 @@ if ($timesettings{'ACTION'} eq $Lang::tr{'save'}) if (!($timesettings{'UPDATE_VALUE'} =~ /^\d+$/) || $timesettings{'UPDATE_VALUE'} <= 0) { $errormessage = $Lang::tr{'invalid time period'}; + $timesettings{'UPDATE_VALUE'} = 0; goto ERROR; } -- 2.51.0