Confirmed, good catch. Hiding the URL from the description: GET: https://catalog.kohadev.local/cgi-bin/koha/opac-search.pl?tag=ft%22%3E<script>alert(150)</script>&q=ft ATTACK DETAILS: This page is vulnerable to Cross-site scripting attacks. Cross-site scripting attacks, in general, are an issue because they are enabling attacks. Specially-crafted malicious URLs can steal authentication tokens/cookies when a logged-in user visits them, giving the attacker full access to that user's account in the application. Reflected XSS attacks, in particular, are a concern as they can be used to socially engineer a user into clicking on what appears to be a legitimate URL.
Created attachment 90342 [details] [review] Bug 23058: Prevent XSS vulnerabiliies when 'tag' is passed to opac-search
Created attachment 90358 [details] [review] Bug 23058: Prevent XSS vulnerabiliies when 'tag' is passed to opac-search Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Created attachment 90447 [details] [review] Bug 23058: Prevent XSS vulnerabiliies when 'tag' is passed to opac-search Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Nice work! Pushed to master for 19.11.00
Also pushed, and released, to stable, oldstable and oldoldstable
pushed to 18.05 for 18.05.14