Skip to content

Commit 001d049

Browse files
committed
vulnerability fix
1 parent 7667f8b commit 001d049

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/yvalve/PluginManager.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,12 @@ namespace
816816

817817
explicit PluginLoadInfo(const char* pluginName)
818818
{
819+
// check for directories in pluginName
820+
PathName path, file;
821+
PathUtils::splitLastComponent(path, file, pluginName);
822+
if (path.hasData())
823+
(Arg::Gds(isc_random) << "Plugin name should not contain directory separator and path component").raise();
824+
819825
// define default values for plugin ...
820826
curModule = fb_utils::getPrefix(IConfigManager::DIR_PLUGINS, pluginName);
821827
regName = pluginName;

0 commit comments

Comments
 (0)