Bugzilla – Attachment 66450 Details for
Bug 19127
Stored XSS in csv-profiles.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19127 - Stored XSS in csv-profiles.pl
Bug-19127---Stored-XSS-in-csv-profilespl.patch (text/plain), 1.85 KB, created by
Marcel de Rooy
on 2017-08-25 06:40:48 UTC
(
hide
)
Description:
Bug 19127 - Stored XSS in csv-profiles.pl
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2017-08-25 06:40:48 UTC
Size:
1.85 KB
patch
obsolete
>From 84fd559f6bca2bf88a7829ae81a0886c72dc933f Mon Sep 17 00:00:00 2001 >From: Amit Gupta <amit.gupta@informaticsglobal.com> >Date: Wed, 16 Aug 2017 17:56:17 +0530 >Subject: [PATCH] Bug 19127 - Stored XSS in csv-profiles.pl >Content-Type: text/plain; charset=utf-8 > >To Test >1. Hit the page /cgi-bin/koha/tools/csv-profiles.pl?op=add_form >2. Add a text in the field Profile name, Profile description > and Profile MARC fields 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> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt >index 40f64f5..181eb35 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt >@@ -279,9 +279,9 @@ function reloadPage(p) { > [% FOREACH csv_profile IN csv_profiles %] > <tr> > <td>[% csv_profile.export_format_id %]</td> >- <td>[% csv_profile.profile %]</td> >- <td>[% csv_profile.description %]</td> >- <td>[% csv_profile.content %]</td> >+ <td>[% csv_profile.profile |html %]</td> >+ <td>[% csv_profile.description |html %]</td> >+ <td>[% csv_profile.content |html %]</td> > <td>[% csv_profile.csv_separator %]</td> > <td>[% PROCESS type_description type_code = csv_profile.type %]</td> > <td>[% PROCESS used_for_description used_for_code = csv_profile.used_for %]</td> >-- >2.1.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 19127
:
66089
|
66219
| 66450 |
67091