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 <katrin.fischer.83@web.de>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Amit Gupta 2017-08-15 14:06:47 +05:30 committed by Jonathan Druart
parent b09750ca2b
commit 6a68fd0330

View file

@ -160,8 +160,8 @@
[% FOREACH authority_type IN authority_types %]
<tr>
<td>[% authority_type.authtypecode %]</td>
<td>[% authority_type.authtypetext %]</td>
<td>[% authority_type.summary %]</td>
<td>[% authority_type.authtypetext |html %]</td>
<td>[% authority_type.summary |html %]</td>
<td>[% authority_type.auth_tag_to_report %]</td>
<td>
<div class="dropdown">