Bugzilla – Attachment 67951 Details for
Bug 19333
XSS vulnerability in opac-shelves
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19333: Fix XSS in opac-shelves
Bug-19333-Fix-XSS-in-opac-shelves.patch (text/plain), 5.62 KB, created by
Marcel de Rooy
on 2017-10-11 12:05:28 UTC
(
hide
)
Description:
Bug 19333: Fix XSS in opac-shelves
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2017-10-11 12:05:28 UTC
Size:
5.62 KB
patch
obsolete
>From e8d566c372468648dea487080c7d47aa6a63ef29 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 18 Sep 2017 14:53:41 -0300 >Subject: [PATCH] Bug 19333: Fix XSS in opac-shelves >Content-Type: text/plain; charset=utf-8 > >category is send back to the template, it must be escaped > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > >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 0791bb6..e6e81ab 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >@@ -171,7 +171,7 @@ > <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline"> > <input type="hidden" name="op" value="edit_form" /> > <input type="hidden" name="referer" value="view" /> >- <input type='hidden' name='category' value='[% category %]' /> >+ <input type='hidden' name='category' value='[% category | html %]' /> > <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" /> > <input type="submit" class="editshelf" value="Edit list" /> > </form> >@@ -179,7 +179,7 @@ > <form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline"> > <input type="hidden" name="op" value="delete" /> > <input type="hidden" name="referer" value="list" /> >- <input type='hidden' name='category' value='[% category %]' /> >+ <input type='hidden' name='category' value='[% category | html %]' /> > <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" /> > <input type="submit" class="deleteshelf" value="Delete list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/> > </form> >@@ -190,7 +190,7 @@ > <form action="/cgi-bin/koha/opac-shelves.pl" method="post" class="form-inline"> > <input type="hidden" name="op" value="remove_share" /> > <input type="hidden" name="referer" value="list" /> >- <input type='hidden' name='category' value='[% category %]' /> >+ <input type='hidden' name='category' value='[% category | html %]' /> > <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" /> > <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_REMOVE_SHARE);" value="Remove share" /> > </form> >@@ -692,7 +692,7 @@ > <form action="/cgi-bin/koha/opac-shelves.pl" method="post" class="form-inline"> > <input type="hidden" name="op" value="delete" /> > <input type="hidden" name="referer" value="list" /> >- <input type='hidden' name='category' value='[% category %]' /> >+ <input type='hidden' name='category' value='[% category | html %]' /> > <input type="hidden" name="shelfnumber" value="[% s.shelfnumber | html %]" /> > <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" /> > </form> >@@ -704,7 +704,7 @@ > <form action="opac-shelves.pl" method="post" class="form-inline"> > <input type="hidden" name="op" value="remove_share" /> > <input type="hidden" name="referer" value="list" /> >- <input type='hidden' name='category' value='[% category %]' /> >+ <input type='hidden' name='category' value='[% category | html %]' /> > <input type="hidden" name="shelfnumber" value="[% s.shelfnumber | html %]" /> > <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_REMOVE_SHARE);" value="Remove share" /> > </form> >@@ -957,7 +957,7 @@ function AdjustRemark() { > if( $("#category").length > 0 ) { > category = $("#category").val(); > } else { >- category = [% category %]; >+ category = [% category | html %]; > } > var perms = $("#allow_changes_from").val(); > >-- >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 19333
:
67192
| 67951