]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 27 Mar 2024 06:54:16 +0000 (07:54 +0100)
commit9cb8fd0114e8072e7901c5e2ef7544393830dcc1
tree6fe4d5f56e6cea1b97197cb4dbb26fcf319445ca
parent2828ea756d124507457a3dcae9ef7aa0f6dbec1f
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>
(cherry picked from commit e6f8a4361e2975dfefcd9773fa61ef7d40300086)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt