Bugzilla – Attachment 65983 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 19102 Fix XSS in mancredit.pl
0001-Bug-19102-Fix-XSS-in-mancredit.pl.patch (text/plain), 1.20 KB, created by
Amit Gupta
on 2017-08-14 20:08:58 UTC
(
hide
)
Description:
Bug 19102 Fix XSS in mancredit.pl
Filename:
MIME Type:
Creator:
Amit Gupta
Created:
2017-08-14 20:08:58 UTC
Size:
1.20 KB
patch
obsolete
>From 55d79b294b035a25fbcaba6e261b2ccb4b4a17c9 Mon Sep 17 00:00:00 2001 >From: Amit Gupta <amit.gupta@informaticsglobal.com> >Date: Mon, 14 Aug 2017 22:44:28 +0530 >Subject: [PATCH] Bug 19102 Fix XSS in mancredit.pl > >1. Hit /cgi-bin/koha/members/mancredit.pl?borrowernumber=xx<script>alert('amit')</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/mancredit.pl?borrowernumber=xx<script>alert('amit')</script> > xx is a borrowernumber >5. Notice it is no longer executed. >--- > members/mancredit.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/members/mancredit.pl b/members/mancredit.pl >index 4855c24..d0e13fe 100755 >--- a/members/mancredit.pl >+++ b/members/mancredit.pl >@@ -24,7 +24,7 @@ > > use strict; > use warnings; >- >+use HTML::Entities; > use C4::Auth; > use C4::Output; > use CGI qw ( -utf8 ); >@@ -41,6 +41,7 @@ my $input=new CGI; > my $flagsrequired = { borrowers => 1, updatecharges => 1 }; > > my $borrowernumber=$input->param('borrowernumber'); >+$borrowernumber = HTML::Entities::encode($borrowernumber); > > my $patron = Koha::Patrons->find( $borrowernumber ); > my $add=$input->param('add'); >-- >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