Bug 19034: XSS Flaws in Cities

1. Hit /cgi-bin/koha/admin/cities.pl
2. Enter <IFRAME SRC="javascript:alert('XSS');"></IFRAME> search cities box.
3. Notice the iframe is executed.
4. Apply patch.
5. Reload page, and enter iframe again on search cities box.
6. Notice it is no longer executed.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Mason James <mtj@kohaaloha.com>
This commit is contained in:
Amit Gupta 2017-08-04 10:38:12 +05:30 committed by Mason James
parent 862a9e7905
commit 8a14d52338
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@
<h2>Cities</h2>
[% IF searchfield %]
Searching: [% searchfield %]
Searching: [% searchfield |html %]
[% END %]
[% IF cities.count %]