From 3055fec1b6160c0bbd84d8d058861edb3c1f5d84 Mon Sep 17 00:00:00 2001 From: Vincent Li Date: Fri, 10 Oct 2025 19:31:50 +0000 Subject: [PATCH] qos.cgi: Fixes bug 13885 commit 32f22c92e19c2d94c5f0b667f27e7a5ccd65ac61 Author: Adolf Belka Date: Thu Sep 25 13:12:45 2025 +0200 qos.cgi: Fixes bug 13885 Fixes: bug 13885 - qos.cgi INC_SPD OUT_SPD DEFCLASS_INC DEFCLASS_OUT Stored Cross-Site Scripting Signed-off-by: Adolf Belka Signed-off-by: Michael Tremer commit a0d7f366c9ba343e519868da240417b028af88ea Author: Michael Tremer Date: Wed Aug 7 16:35:02 2024 +0200 qos.cgi: Make all tables use the full width Signed-off-by: Michael Tremer Signed-off-by: Vincent Li --- html/cgi-bin/qos.cgi | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/html/cgi-bin/qos.cgi b/html/cgi-bin/qos.cgi index f3bbd1bf4..8400bafdf 100644 --- a/html/cgi-bin/qos.cgi +++ b/html/cgi-bin/qos.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2022 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 # @@ -652,7 +652,7 @@ if ($errormessage) { print < - +
END ; if ( $message ne "" ) { @@ -671,9 +671,11 @@ END END ; if (($qossettings{'OUT_SPD'} ne '') && ($qossettings{'INC_SPD'} ne '')) { + $qossettings{'OUT_SPD'} = &Header::escape($qossettings{'OUT_SPD'}); + $qossettings{'INC_SPD'} = &Header::escape($qossettings{'INC_SPD'}); print < -
+
 
$Lang::tr{'downlink speed'}: $qossettings{'INC_SPD'} @@ -683,9 +685,11 @@ END ; } if (($qossettings{'DEFCLASS_OUT'} ne '') && ($qossettings{'DEFCLASS_INC'} ne '')) { + $qossettings{'DEFCLASS_OUT'} = &Header::escape($qossettings{'DEFCLASS_OUT'}); + $qossettings{'DEFCLASS_INC'} = &Header::escape($qossettings{'DEFCLASS_INC'}); print < - +

$Lang::tr{'downlink std class'}: $qossettings{'DEFCLASS_INC'} @@ -695,7 +699,7 @@ END
- +
@@ -740,7 +744,7 @@ sub changedefclasses { &Header::openbox('100%', 'center', $Lang::tr{'std classes'}); print < - +
$Lang::tr{'no filter pass'}
$Lang::tr{'download'}: - +
@@ -843,7 +847,7 @@ sub parentclass { &Header::openbox('100%', 'center', $Lang::tr{'parentclass'}); print < -
$Lang::tr{'down and up speed'}
+
END ; if ( $message ne "" ) { @@ -936,7 +940,7 @@ sub level7rule { &Header::openbox('100%', 'center', $Lang::tr{'Level7 Rule'}); print < -
+
END ; if ( $message ne "" ) { @@ -982,7 +986,7 @@ sub portrule { &Header::openbox('100%', 'center', $Lang::tr{'Add Port Rule'}); print < -
+
$Lang::tr{'enter data'}
$Lang::tr{'protocol'}: +
END ; if ( $message ne "" ) {