]> git.koha-community.org Git - koha.git/commit
Bug 16587 opac-sendshelf.pl is vulnerable to XSS
authorChris Cormack <chris@bigballofwax.co.nz>
Wed, 25 May 2016 14:06:28 +0000 (14:06 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Wed, 25 May 2016 22:14:33 +0000 (22:14 +0000)
commit4e817ee04c2b5fbc2353ff382c6630322e57d8ae
tree32d7d2bdd771630576a04aff611a37f5615d8b84
parent05a014b7668e0c4fa662821f7774ac733fd0cc7f
Bug 16587 opac-sendshelf.pl is vulnerable to XSS

To test
1/ Hit a url like
http://localhost:8080/cgi-bin/koha/opac-sendshelf.pl?email=%3Cscript%3Ealert(%27XSS%27)%3C%2Fscript%3Ezz%40zz&comment=tes&shelfid=4
2/ Notice you get a js alert
3/ Apply patch
4/ Notice the js is now escaped

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelfform.tt