]> 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)
committerWainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
Thu, 18 Jul 2024 06:33:21 +0000 (18:33 +1200)
commit0aad8e68183a36ea9db697eb2d4056e228963954
treeb78ec03954f0c5dafb376054a82fc36ad82622de
parent843dce6cf55817f3f772a10f9ec17ee8d29a209f
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: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
Koha/FrameworkPlugin.pm