Bug 38961: XSS in vendor search
acqui/booksellers.tt and admin/currency.tt use | $HtmlTags without first filtering the string they wrap. Test plan: 1. Without the patch, load the URL in comment 1, note the alert() 2. Apply patch, load the URL in comment 1, no alert() Sponsored-by: Chetco Community Public Library Signed-off-by: Magnus Enger <magnus@libriotech.no> Followed the test plan, works as advertised. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
5e7b3167fd
commit
b439003fba
|
|
@ -32,7 +32,7 @@
|
|||
<a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
|
||||
[% END %]
|
||||
[% WRAPPER breadcrumb_item bc_active= 1 %]
|
||||
<span>Search for vendor [% supplier | $HtmlTags tag='em' %]</span>
|
||||
<span>Search for vendor [% supplier | html | $HtmlTags tag='em' %]</span>
|
||||
[% END %]
|
||||
[% END #/ WRAPPER breadcrumbs %]
|
||||
[% END #/ WRAPPER sub-header.inc %]
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@
|
|||
[% IF op =='delete_confirm' %]
|
||||
[% IF nb_of_orders or nb_of_vendors %]
|
||||
<div class="alert alert-warning">
|
||||
<h1>Cannot delete currency [% currency.currency | $HtmlTags tag='span' attributes=>'class="ex"' %]</h1>
|
||||
<h1>Cannot delete currency [% currency.currency | html | $HtmlTags tag='span' attributes=>'class="ex"' %]</h1>
|
||||
<p>
|
||||
[% IF nb_of_orders %]
|
||||
<span>This currency is used by [% nb_of_orders | html %] orders.</span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue