Bug 19086 Stored XSS in circulation.pl
1/ To test add a message to a borrower that contains js 2/ hit /cgi-bin/koha/circ/circulation.pl?borrowernumber=[number] where number is the borrowernumber of the borrower you set the message for 3/ Notice js is execute 4/ Apply patch, reload, js is escaped Signed-off-by: Amit Gupta <amit.gupta@informaticsglobal.com> 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
683f9ec507
commit
1deab6d87f
|
|
@ -892,7 +892,7 @@ No patron matched <span class="ex">[% message | html %]</span>
|
|||
<span class="circ-hlt">
|
||||
[% message.message_date | $KohaDates %]
|
||||
[% Branches.GetName( message.branchcode ) %]
|
||||
<i>"[% message.message %]"</i>
|
||||
<i>"[% message.message | html %]"</i>
|
||||
</span>
|
||||
[% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
|
||||
<a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id %]&borrowernumber=[% message.borrowernumber %]" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);">[Delete]</a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue