Bugzilla – Attachment 66083 Details for
Bug 19108
Stored XSS in multiple scripts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED OFF] Bug 19108 - Stored XSS in fieldmapping.pl
SIGNED-OFF-Bug-19108---Stored-XSS-in-fieldmappingp.patch (text/plain), 1.39 KB, created by
Katrin Fischer
on 2017-08-16 11:55:18 UTC
(
hide
)
Description:
[SIGNED OFF] Bug 19108 - Stored XSS in fieldmapping.pl
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2017-08-16 11:55:18 UTC
Size:
1.39 KB
patch
obsolete
>From fa2b321d33cec2e2ee145acd8c694d89dd5340f7 Mon Sep 17 00:00:00 2001 >From: Amit Gupta <amit.gupta@informaticsglobal.com> >Date: Tue, 15 Aug 2017 14:10:43 +0530 >Subject: [PATCH] [SIGNED OFF] Bug 19108 - Stored XSS in fieldmapping.pl > >To Test >1. Hit the page /cgi-bin/koha/admin/fieldmapping.pl >2. Add a text in the field Field name that contains js >3. Save the page. >4. Notice js is execute >5. Apply patch and reload, the js is escaped > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/fieldmapping.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/fieldmapping.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/fieldmapping.tt >index d182750..5dcfc6c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/fieldmapping.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/fieldmapping.tt >@@ -69,7 +69,7 @@ $(document).ready(function() { > </tr> > [% FOREACH field IN fields %] > <tr> >- <td>[% field.field %]</td> >+ <td>[% field.field |html %]</td> > <td>[% field.fieldcode %]</td> > <td>[% field.subfieldcode %]</td> > <td><a class="btn btn-default btn-xs" href="?op=delete&id=[% field.id %]&framework=[% field.frameworkcode %]"><i class="fa fa-trash"></i> Delete</a></td> >-- >2.7.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 19108
:
65997
|
65998
|
65999
|
66000
|
66001
|
66002
|
66079
|
66080
|
66081
|
66082
|
66083
|
66084
|
66085
|
66442
|
66443
|
66444
|
66445
|
66446
|
66447
|
66448
|
67085