]> 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)
committerFrédéric Demians <f.demians@tamil.fr>
Tue, 23 Jul 2024 08:13:59 +0000 (10:13 +0200)
commit9c5b9d135f126a26f4ec5fc87f9a444c9adc2ae2
tree1d776a2651a1431135032a5436e094220aa8fb71
parent9e16ed4467da850ad63652906a2dc3011d20a338
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>
(cherry picked from commit 4e9644238ff04d06e4e6dc980fcc8ad1a85a88ea)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
Koha/FrameworkPlugin.pm