Bugzilla – Attachment 65976 Details for
Bug 19102
XSS Flaws in circulation.pl - routing-lists.pl - readingrec.pl - notices.pl - maninvoice.pl - boraccount.pl - mancredit.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19086 Fix XSS in routing-lists.pl
0001-Bug-19086-Fix-XSS-in-routing-lists.pl.patch (text/plain), 1.24 KB, created by
Amit Gupta
on 2017-08-14 19:51:12 UTC
(
hide
)
Description:
Bug 19086 Fix XSS in routing-lists.pl
Filename:
MIME Type:
Creator:
Amit Gupta
Created:
2017-08-14 19:51:12 UTC
Size:
1.24 KB
patch
obsolete
>From 6d2ac5107141348d27085c898849ac5e48a6676b Mon Sep 17 00:00:00 2001 >From: Amit Gupta <amit.gupta@informaticsglobal.com> >Date: Mon, 14 Aug 2017 22:16:21 +0530 >Subject: [PATCH] Bug 19086 Fix XSS in routing-lists.pl > >1. Hit /cgi-bin/koha/members/routing-lists.pl?borrowernumber=xx<script>alert('XSS Payload')</script> > xx is a borrowernumber >2. Notice java script is execute. >3. Apply patch. >4. Reload page, and hit the page again /cgi-bin/koha/members/routing-lists.pl?borrowernumber=xx<script>alert('XSS Payload')</script> > xx is a borrowernumber >5. Notice it is no longer executed. >--- > members/routing-lists.pl | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/members/routing-lists.pl b/members/routing-lists.pl >index 6b024bd..9e65104 100755 >--- a/members/routing-lists.pl >+++ b/members/routing-lists.pl >@@ -20,6 +20,7 @@ > use strict; > #use warnings; FIXME - Bug 2505 > use CGI qw ( -utf8 ); >+use HTML::Entities; > use C4::Output; > use C4::Auth qw/:DEFAULT/; > use C4::Members; >@@ -45,6 +46,7 @@ my $findborrower = $query->param('findborrower'); > $findborrower =~ s|,| |g; > > my $borrowernumber = $query->param('borrowernumber'); >+$borrowernumber = HTML::Entities::encode($borrowernumber); > > my $branch = C4::Context->userenv->{'branch'}; > >-- >1.7.9.5 >
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 19102
:
65975
|
65976
|
65977
|
65978
|
65979
|
65980
|
65981
|
65982
|
65983
|
66069
|
66070
|
66071
|
66072
|
66073
|
66074
|
66075