]> git.koha-community.org Git - koha.git/commit
Bug 17025: Fix XSS in serials-search.pl
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 2 Aug 2016 13:46:11 +0000 (14:46 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 31 Aug 2016 09:39:24 +0000 (21:39 +1200)
commite763349bfc2579f70fd4ecc989aeeeb51c56623c
tree1fc176ead794d85e3b5d90ebc49c70827395d826
parent8c18b0053fa74525ffc0306b6a459ed9c4e72e56
Bug 17025: Fix XSS in serials-search.pl

Test plan:
Hit
  /serials/serials-search.pl?ISSN_filter="%2F><script>alert('XSS')<%2Fscript>&searched=1
  /serials/serials-search.pl?title_filter="%2F><script>alert('XSS')<%2Fscript>&searched=1

=> Without this patch you will see the alert
=> With this patch, no more alert

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 1ea1504c30c5c34dd763027caee55dcf359e94cf)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit d432c5bba836601b809a9f807af05ef85e952453)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit 422eeb01fe83e3e9166406cfb244e3053ad72bd6)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/includes/serials-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/subscriptions-search.inc