]> git.koha-community.org Git - koha.git/commit
Bug 37146: Prevent path traversal by validating input
authorDavid Cook <dcook@prosentient.com.au>
Fri, 21 Jun 2024 01:45:51 +0000 (01:45 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 1 Aug 2024 15:26:37 +0000 (17:26 +0200)
commit47419006117d0a270891c77cce88d5f6a9490c7d
tree2923c96db72cb6c91a477425ea665602208183e2
parent6503787f13fee3e3f5255932a2db47e722494fbe
Bug 37146: Prevent path traversal by validating input

This patch validates the plugin_name passed to plugin_launcher.pl
against the base path containing the "value_builder" directory.

Test plan:
0. Apply the patch
1. koha-plack --reload kohadev
2. Go to http://localhost:8081/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=29
3. Check that the tag editor for leader still works
4. Go to http://localhost:8081/cgi-bin/koha/cataloguing/additem.pl?biblionumber=29
5. Check that the pluginf or "Date acquired" still works

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/FrameworkPlugin.pm