]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 25 Jul 2024 14:21:56 +0000 (14:21 +0000)
commit3a2a76726f1405c11d6f79ec581d2b1974cbca77
treeebfcc28ad1e98a6f6435380850897c42edc75fe5
parentffd03490ac81feb0fa45c5a7bc5e1bdda875a9d1
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: Lucas Gass <lucas@bywatersolutions.com>
Koha/FrameworkPlugin.pm