Bugzilla – Attachment 66089 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
0001-Bug-19127-Stored-XSS-in-csv-profiles.pl.patch (text/plain), 1.69 KB, created by
Amit Gupta
on 2017-08-16 12:30:09 UTC
(
hide
)
Description:
Bug 19127 - Stored XSS in csv-profiles.pl
Filename:
MIME Type:
Creator:
Amit Gupta
Created:
2017-08-16 12:30:09 UTC
Size:
1.69 KB
patch
obsolete
>From 0b138b3337d330550607ed769ab1aee67ebd5d35 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 > >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 >--- > .../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> >-- >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 19127
:
66089
|
66219
|
66450
|
67091