Bugzilla – Attachment 40436 Details for
Bug 14423
Multiple XSS and XSRF issues in Staff Client
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14423 : XSS bug in lateorders
Bug-14423--XSS-bug-in-lateorders.patch (text/plain), 2.38 KB, created by
Chris Cormack
on 2015-06-21 08:20:43 UTC
(
hide
)
Description:
Bug 14423 : XSS bug in lateorders
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2015-06-21 08:20:43 UTC
Size:
2.38 KB
patch
obsolete
>From 4bf56ab0ab544533414e868d031ac82994ed5ae5 Mon Sep 17 00:00:00 2001 >From: Chris <chris@bigballofwax.co.nz> >Date: Sun, 21 Jun 2015 08:18:20 +0000 >Subject: [PATCH] Bug 14423 : XSS bug in lateorders > >1/ hit a url like http://localhost:8081/cgi-bin/koha/acqui/lateorders.pl?delay=<script>alert('oh noes')</script>&estimateddeliverydatefrom >2/ Not you get an alert box >3/ Apply patch notice it is fixed >4/ Test functionality still works >--- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt >index 70a15be..f680401 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt >@@ -98,7 +98,7 @@ $(document).ready(function() { > [% IF ( lateorders ) %] > <form action="lateorders.pl" name="claim" method="post"> > <input type="hidden" name="op" value="send_alert" /> >- <input type="hidden" name="delay" value="[% delay %]" /> >+ <input type="hidden" name="delay" value="[% delay | html%]" /> > <input type="hidden" name="booksellerid" value="[% booksellerid %]" /> > [% IF ( letters ) %] > <p><label for="letter_code">Claim using notice: </label><select name="letter_code" id="letter_code"> >@@ -222,10 +222,10 @@ $(document).ready(function() { > <fieldset class="brief"> > <h4>Filter results:</h4> > [% FOREACH ERROR_LOO IN ERROR_LOOP %] >-[% IF ( ERROR_LOO.delay_digits ) %]<p class="error">The number of days ([% ERROR_LOO.bad_delay %]) must be a number between 0 and 999.</p>[% END %] >+[% IF ( ERROR_LOO.delay_digits ) %]<p class="error">The number of days ([% ERROR_LOO.bad_delay | html %]) must be a number between 0 and 999.</p>[% END %] > [% END %] > <ol> >- <li><label for="delay">Order date:</label><input size="3" maxlength="3" id="delay" type="text" name="delay" value="[% delay %]" /> days ago</li> >+ <li><label for="delay">Order date:</label><input size="3" maxlength="3" id="delay" type="text" name="delay" value="[% delay | html%]" /> days ago</li> > <li><label for="from">Estimated delivery date from: </label> > <input type="text" size="10" id="from" name="estimateddeliverydatefrom" value="[% estimateddeliverydatefrom %]" class="datepickerfrom" /> > <div class="hint">[% INCLUDE 'date-format.inc' %]</div> >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14423
:
40383
|
40435
|
40436
|
40437
|
40438
|
40439
|
40440
|
40441
|
40449
|
40450
|
40451
|
40452
|
40453
|
40454
|
40455
|
40495
|
40496
|
40497
|
40498
|
40499
|
40500
|
40501
|
40503