Bugzilla – Attachment 65968 Details for
Bug 19086
Multiple cross-site scripting vulnerabilities
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19086 Stored XSS in maninvoice.pl
0001-Bug-19086-Stored-XSS-in-maninvoice.pl.patch (text/plain), 1.21 KB, created by
Amit Gupta
on 2017-08-14 17:08:57 UTC
(
hide
)
Description:
Bug 19086 Stored XSS in maninvoice.pl
Filename:
MIME Type:
Creator:
Amit Gupta
Created:
2017-08-14 17:08:57 UTC
Size:
1.21 KB
patch
obsolete
>From b78a16abdb40665ad1f884901a2cad5c9dea365e Mon Sep 17 00:00:00 2001 >From: Amit Gupta <amit.gupta@informaticsglobal.com> >Date: Mon, 14 Aug 2017 22:36:39 +0530 >Subject: [PATCH] Bug 19086 Stored XSS in maninvoice.pl > >1. Hit /cgi-bin/koha/members/maninvoice.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/maninvoice.pl?borrowernumber=xx<script>alert('XSS Payload')</script> > xx is a borrowernumber >5. Notice it is no longer executed. >--- > members/maninvoice.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/members/maninvoice.pl b/members/maninvoice.pl >index 2c1c05f..203b0f2 100755 >--- a/members/maninvoice.pl >+++ b/members/maninvoice.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 }; > > 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 19086
:
65927
|
65929
|
65958
|
65960
|
65965
|
65966
|
65967
|
65968
|
65969
|
65970
|
65972
|
65984
|
65985
|
65986
|
65987
|
66058
|
66059
|
66060
|
66061
|
66062
|
66063
|
66433
|
66434
|
66435
|
66436
|
66437
|
66438