Bug 19108 - Stored XSS in items_search_fields.pl
To Test 1. Hit the page /cgi-bin/koha/admin/items_search_fields.pl 2. Add a text in the field Name and Label that contains js 3. Save the page. 4. Notice js is execute 5. Apply patch and reload, the js is escaped Fixed for new and edit page 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:
parent
75ca6a17ad
commit
5ffa9b924c
|
|
@ -2,7 +2,7 @@
|
|||
<li>
|
||||
[% IF field %]
|
||||
<span class="label">Name: </span>
|
||||
[% field.name %]
|
||||
[% field.name |html %]
|
||||
<input type="hidden" name="name" value="[% field.name %]">
|
||||
[% ELSE %]
|
||||
<label class="required" for="name">Name: </label>
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
<li>
|
||||
<label class="required" for="label">Label: </label>
|
||||
[% IF field %]
|
||||
<input type="text" name="label" id="label" value="[% field.label %]" class="required" required="required" />
|
||||
<input type="text" name="label" id="label" value="[% field.label |html %]" class="required" required="required" />
|
||||
[% ELSE %]
|
||||
<input type="text" name="label" id="label" class="required" required="required" />
|
||||
[% END %]
|
||||
|
|
|
|||
|
|
@ -9,14 +9,14 @@
|
|||
<a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
|
||||
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> ›
|
||||
<a href="/cgi-bin/koha/admin/items_search_fields.pl">Item search fields</a> ›
|
||||
[% field.name %]
|
||||
[% field.name |html %]
|
||||
</div>
|
||||
|
||||
<div id="doc3" class="yui-t2">
|
||||
<div id="bd">
|
||||
<div id="yui-main">
|
||||
<div class="yui-b">
|
||||
<h1>Item search field: [% field.label %]</h1>
|
||||
<h1>Item search field: [% field.label |html %]</h1>
|
||||
|
||||
<form action="/cgi-bin/koha/admin/items_search_field.pl" method="POST" class="validated">
|
||||
<fieldset class="rows">
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
[% IF field_added %]
|
||||
<div class="dialog message">
|
||||
Field successfully added: [% field_added.label %]
|
||||
Field successfully added: [% field_added.label |html %]
|
||||
</div>
|
||||
[% ELSIF field_not_added %]
|
||||
<div class="dialog alert">
|
||||
|
|
@ -70,8 +70,8 @@
|
|||
<tbody>
|
||||
[% FOREACH field IN fields %]
|
||||
<tr>
|
||||
<td>[% field.name %]</td>
|
||||
<td>[% field.label %]</td>
|
||||
<td>[% field.name |html %]</td>
|
||||
<td>[% field.label |html %]</td>
|
||||
<td>[% field.tagfield %]</td>
|
||||
<td>[% field.tagsubfield %]</td>
|
||||
<td>[% field.authorised_values_category %]</td>
|
||||
|
|
|
|||
Loading…
Reference in New Issue