From c1f3aa2f1492267c9b5f4118d744d3f45f4764bb Mon Sep 17 00:00:00 2001 From: Amit Gupta Date: Mon, 13 Nov 2017 09:16:30 +0530 Subject: [PATCH] Bug 19613 - Fix XSS in /cgi-bin/koha/circ/circulation.pl To Test 1. Hit the page /cgi-bin/koha/members/memberentry.pl 2. Add a text in the field opacnote that contains js 3. Save the page. 4. Notice js is execute 5. Apply patch and reload, the js is escaped Signed-off-by: Chris Cormack --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index d5507c0f39..8d9fcd0cd3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -885,7 +885,7 @@ No patron matched [% message | html %] [% IF ( notes ) %]

Notes:

-

[% notesmsg %]

+

[% notesmsg |html %]

-- 2.14.1