]> git.koha-community.org Git - koha.git/commit
Bug 17905: FIX CSRF in member-flags
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 13 Jan 2017 15:19:45 +0000 (16:19 +0100)
committerKatrin Fischer <katrin.fischer.83@web.de>
Mon, 30 Jan 2017 14:59:09 +0000 (15:59 +0100)
commit4a5bf7244f11502deca27b61150fdafebc57a534
tree055bdc62cd9a4f9027de2ffe95dc90df776548ed
parentddf456271c6fcffb87f12dc8e3353474a9d10b74
Bug 17905: FIX CSRF in member-flags

If an attacker can get an authenticated Koha user to visit their page
with the url below, privilege escalation is possible

The exploit can be simulated triggering
    /cgi-bin/koha/members/member-flags.pl?member=42&newflags=1&flag=superlibrarian

Test plan:
Trigger the url above
=> Without this patch, 42 is now superlibrarian
=> With this patch, you will get the "Wrong CSRF token" error.

This vulnerability has been reported by MDSec.

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 0c3c162f767f5587f5fad7375151f8efca3689b3)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt
members/member-flags.pl