]> git.koha-community.org Git - koha.git/commit
Bug 35960: Use .val() instead of string concat to prevent potential XSS
authorJulian Maurice <julian.maurice@biblibre.com>
Thu, 1 Feb 2024 08:15:23 +0000 (09:15 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Wed, 3 Apr 2024 15:05:47 +0000 (17:05 +0200)
commitca19c21a5b7f58b505c60f17cf5033987e9a879d
tree9fa2a30c947017a129fcba8c258ea96b8b9afb04
parent7f8523ed965371de38d7c805b187d61c40b3b5da
Bug 35960: Use .val() instead of string concat to prevent potential XSS

Test plan:
1. Log out
2. Go to /cgi-bin/koha/mainpage.pl#somestring"with<html>char
3. Open the brower's inspector and find "auth_forwarded_hash" input
4. Make sure the value attribute is there and corresponds to the URL's
   fragment. It should be URI-encoded.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt