]> git.koha-community.org Git - koha.git/commit
Bug 3652: close XSS vulnerabilities in opac-export
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Mon, 15 Oct 2012 15:58:30 +0000 (11:58 -0400)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Mon, 22 Oct 2012 20:37:36 +0000 (16:37 -0400)
commitab16ea5b02282d76b556b69dee00130a35484c07
treed380d980a962d1ff36a81cc5fec92672c79d888e
parent71f9e11cc46cd9b7eae8504da69f350acd1f766f
Bug 3652: close XSS vulnerabilities in opac-export

The opac-export.pl script had a number of XSS vulnerabilities relating
to its error handling.

To test:
1) Go to /cgi-bin/koha/opac-export.pl?op=export&bib=2&format=<h2>evil</h2>
   (substituting a valid biblionumber for the '2')
2) Notice that "evil" is rendered as an h2 heading.
3) Apply patch.
4) Notice that you now see the h2 tags, and they are not rendered by
   the browser.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
opac/opac-export.pl