Bug 17026: Fix XSS in serials/checkexpiration.pl
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 2 Aug 2016 13:51:49 +0000 (14:51 +0100)
committerFrédéric Demians <f.demians@tamil.fr>
Fri, 5 Aug 2016 06:14:25 +0000 (08:14 +0200)
commitec78a0d43fe8032d9eeb9272878129085c3c429f
tree30affbc662ac679b1998ef645ac7a0e3bb29168d
parent542c0dbbaa8bff5a101058e0e2397e21edf8f192
Bug 17026: Fix XSS in serials/checkexpiration.pl

Test plan:
Hit:
 /serials/checkexpiration.pl?title="><script>alert("XSS")</script>&date=12/02/2002
 /serials/checkexpiration.pl?issn="><script>alert("XSS")</script>&date=12/02/2002

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

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 9d00353a92487dcde654d88206fd5458448fff1b)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt