From ef90a8d97bb64af7b1908b6d0d61723b85cef06f Mon Sep 17 00:00:00 2001 From: Amit Gupta Date: Mon, 7 Aug 2017 21:43:56 +0530 Subject: [PATCH] Bug 19051 - XSS Flaws in - Batch item modification page 1. Hit /cgi-bin/koha/tools/batchMod.pl 2. Enter in the Barcode list (one barcode per line) text area. 3. Notice the iframe is executed. 4. Apply patch. 5. Reload page, and enter iframe again on Barcode list (one barcode per line) text area. 6. Notice it is no longer executed. 7. Fixes for both barcode and itemnumber. --- .../prog/en/modules/tools/batchMod-edit.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt index 2b746ab..c25dfe4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt @@ -98,7 +98,7 @@ $(document).ready(function(){ [% FOREACH notfoundbarcode IN notfoundbarcodes %] - [% notfoundbarcode.barcode %] + [% notfoundbarcode.barcode |html %] [% END %] -- 1.7.9.5