From 6a68fd033035491a1e8060d47ca30f8640cd835e Mon Sep 17 00:00:00 2001 From: Amit Gupta Date: Tue, 15 Aug 2017 14:06:47 +0530 Subject: [PATCH] Bug 19108: Fix Stored XSS in authtypes.pl To Test 1. Hit the page /cgi-bin/koha/admin/authtypes.pl?op=add_form 2. Add a text in the field Description that contains js 3. Save the page. 4. Notice js is execute 5. Apply patch and reload, the js is escaped Signed-off-by: Katrin Fischer Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt index f76f394f73..2f69f538ae 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt @@ -160,8 +160,8 @@ [% FOREACH authority_type IN authority_types %] [% authority_type.authtypecode %] - [% authority_type.authtypetext %] - [% authority_type.summary %] + [% authority_type.authtypetext |html %] + [% authority_type.summary |html %] [% authority_type.auth_tag_to_report %]