Bug 19103 - Stored XSS in matching-rules.pl

To Test
1. Hit the page /cgi-bin/koha/admin/matching-rules.pl
2. Click on new record matching rule
3. Add a text in the field Description that contain js.
4. Save the page.
5. Notice js is execute
6. 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: Mason James <mtj@kohaaloha.com>
This commit is contained in:
Amit Gupta 2017-08-15 10:15:54 +05:30 committed by Mason James
parent 174f1eda3b
commit 8675e0c467
1 changed files with 1 additions and 1 deletions

View File

@ -575,7 +575,7 @@ function CheckRuleForm(f) {
<tr>
<td>[% available_matching_rule.matcher_id %]</td>
<td>[% available_matching_rule.code %]</td>
<td>[% available_matching_rule.description %]</td>
<td>[% available_matching_rule.description |html %]</td>
<td class="actions">
<a class="btn btn-mini" href="[% available_matching_rule.script_name %]?op=edit_matching_rule&amp;matcher_id=[% available_matching_rule.matcher_id |html %]"><i class="fa fa-pencil"></i> Edit</a>
<a class="btn btn-mini" href="[% available_matching_rule.script_name %]?op=delete_matching_rule&amp;matcher_id=[% available_matching_rule.matcher_id |html %]"><i class="fa fa-trash"></i> Delete</a>