From 772394e954ec25b780b76e3b3b11fe63708d5f7e Mon Sep 17 00:00:00 2001 From: Amit Gupta Date: Mon, 7 Aug 2017 21:08:36 +0530 Subject: [PATCH] Bug 19051 - XSS Flaws in - Batch record deletion page 1. Hit /cgi-bin/koha/tools/batch_delete_records.pl 2. Enter in the Record number list (one per line) text area. 3. Notice the iframe is executed. 4. Apply patch. 5. Reload page, and enter iframe again on Record number list (one per line) text area. 6. Notice it is no longer executed. 7. Fixes for both biblio and authority records. Signed-off-by: Chris Cormack Signed-off-by: Marcel de Rooy --- .../prog/en/modules/tools/batch_delete_records.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt index 4d0eb181f4..ae17e0e897 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt @@ -104,9 +104,9 @@ $(document).ready(function() {
[% END %] [% IF message.code == 'biblio_not_exists' %] - The biblionumber [% message.biblionumber %] does not exist in the database. + The biblionumber [% message.biblionumber |html %] does not exist in the database. [% ELSIF message.code == 'authority_not_exists' %] - The authority id [% message.authid %] does not exist in the database. + The authority id [% message.authid |html %] does not exist in the database. [% ELSIF message.code == 'item_issued' %] At least one item is checked out on bibliographic record [% message.biblionumber %]. [% ELSIF message.code == 'reserve_not_cancelled' %] -- 2.39.5