]> git.koha-community.org Git - koha.git/commit
Bug 11341: fix XSS bug in opac-search.pl (facets)
authorChris Cormack <chrisc@catalyst.net.nz>
Wed, 4 Dec 2013 21:09:20 +0000 (10:09 +1300)
committerFridolin SOMERS <fridolin.somers@biblibre.com>
Fri, 13 Dec 2013 15:33:34 +0000 (16:33 +0100)
commitd0ba676864eb2a55776d8dbd02d2403f9fa74a4b
tree8eebc1e3f3cf44700ef339e69f2797f341bdda64
parent9f907132fe1775cd6eafe3051773728b98ebee28
Bug 11341: fix XSS bug in opac-search.pl (facets)

This patch fixes the prog theme; the bootstrap theme already
does the necessary filtering.

To test
1/ Craft a url like
 cgi-bin/koha/opac-search.pl?idx=kw&q=fish&offset=20" onmouseover%3dprompt(994000) bad%3d"
 (the search must return enough results to have a show more link in the facets)

2/ Check the source, or mouseover the Show more links in the facets
   Notice the code is executable

3/ Apply patch - notice it is no longer executable

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit d2d365ca830345b9a519158f6d735d2abd125380)
Signed-off-by: Fridolin SOMERS <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc