From b97aac7c4b5dcb38a67c11d85869a433ed7c2d3f Mon Sep 17 00:00:00 2001 From: bison-paolo Date: Thu, 24 Nov 2016 17:04:46 +0100 Subject: [PATCH] Fixed XSS issues --- cis/menu.php | 6 ++++-- cis/private/lehre/lesson.php | 3 ++- cis/private/lvplan/stpl_week.php | 5 +++-- cis/private/tools/suche.php | 5 ++++- cis/private/tools/zeitaufzeichnung.php | 3 ++- include/functions.inc.php | 5 +++-- 6 files changed, 18 insertions(+), 9 deletions(-) diff --git a/cis/menu.php b/cis/menu.php index 089271e44..09859c413 100644 --- a/cis/menu.php +++ b/cis/menu.php @@ -103,12 +103,14 @@ ob_start(); if(isset($_GET['content_id']) && $_GET['content_id'] != '') { - $content_id = $_GET['content_id']; + // Uses urlencode to avoid XSS issues + $content_id = urlencode($_GET['content_id']); } else { $content_id = CIS_MENU_ENTRY_CONTENT; - } ?> + } + ?>