Bugzilla – Attachment 40368 Details for
Bug 14418
XSS Flaws in OPAC Interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 14418 : More XSS vulnerabilities in opac-shelves.pl
PASSED-QA-Bug-14418--More-XSS-vulnerabilities-in-o.patch (text/plain), 1.75 KB, created by
Katrin Fischer
on 2015-06-19 13:12:27 UTC
(
hide
)
Description:
[PASSED QA] Bug 14418 : More XSS vulnerabilities in opac-shelves.pl
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2015-06-19 13:12:27 UTC
Size:
1.75 KB
patch
obsolete
>From 4ce056498ac5472e4c08199cef15bd800c695b1c Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Fri, 19 Jun 2015 11:41:45 +1200 >Subject: [PATCH] [PASSED QA] Bug 14418 : More XSS vulnerabilities in > opac-shelves.pl > >To test: >1/ Hit a url like >/cgi-bin/koha/opac-shelves.pl?viewshelf=7&op=modif&display="><script>alert('oh >noes')</script> Where the id is a valid shelf id >2/ Notice the js is executed >3/ Apply patch >4/ Reload page >5/ Notice input is now escaped on display > >Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> >Tested in Debian, couldn't reproduce the alert in Iceweasel, but in >Chromium. Patch fixes it. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >index b586ac1..1dae579 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >@@ -533,7 +533,7 @@ > [% IF ( edit ) %] > <form method="post" action="/cgi-bin/koha/opac-shelves.pl"> > <input type="hidden" name="op" value="modifsave" /> >- <input type="hidden" name="display" value="[% display %]" /> >+ <input type="hidden" name="display" value="[% display |html %]" /> > <input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]" /> > <fieldset class="rows"> > <legend>Editing <em>[% shelfname |html %]</em></legend> >-- >1.7.10.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 14418
:
40335
|
40338
|
40342
|
40343
|
40350
|
40351
|
40352
|
40366
|
40367
| 40368