Bugzilla – Attachment 65995 Details for
Bug 19103
Stored XSS in itemtypes.pl - patron-attr-types.pl - matching-rules.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19103 - Stored XSS in patron-attr-types.pl
0001-Bug-19103-Stored-XSS-in-patron-attr-types.pl.patch (text/plain), 1.28 KB, created by
Amit Gupta
on 2017-08-15 04:40:52 UTC
(
hide
)
Description:
Bug 19103 - Stored XSS in patron-attr-types.pl
Filename:
MIME Type:
Creator:
Amit Gupta
Created:
2017-08-15 04:40:52 UTC
Size:
1.28 KB
patch
obsolete
>From 35144e56efcf115530fb8ab67eea4c37d0acbacf Mon Sep 17 00:00:00 2001 >From: Amit Gupta <amit.gupta@informaticsglobal.com> >Date: Tue, 15 Aug 2017 10:07:45 +0530 >Subject: [PATCH] Bug 19103 - Stored XSS in patron-attr-types.pl > >To Test >1. Hit the page /cgi-bin/koha/admin/patron-attr-types.pl >2. Click on new patron attribute type >2. Add a text in the field Description that contain js. >2. Save the page. >3. Notice js is execute >4. Apply patch and reload, the js is escaped >--- > .../prog/en/modules/admin/patron-attr-types.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >index b0c49bf..55c5f40 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >@@ -272,7 +272,7 @@ $(document).ready(function() { > [% FOREACH item IN attribute.items %] > <tr> > <td>[% item.code |html %]</td> >- <td>[% item.description %]</td> >+ <td>[% item.description |html %]</td> > <td> > [% IF ( item.branches && item.branches.size > 0 ) %] > [% branches_str = "" %] >-- >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 19103
:
65991
|
65995
|
65996
|
66086
|
66087
|
66088
|
66439
|
66440
|
66441
|
67084