Skip to content

Commit 9df1362

Browse files
committed
Revert "Compare source and resulting path lengths to prevent sandbox escape"
This reverts commit 11bd9d7.
1 parent 11bd9d7 commit 9df1362

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/plugins/udr_engine/UdrEngine.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -544,15 +544,6 @@ UdrPluginImpl* Engine::loadModule(ThrowStatusWrapper* status, IRoutineMetadata*
544544
constexpr unsigned ARG_TEXT = 3; // Keep both in sync
545545
constexpr unsigned ARG_END = 4; // with status initializer!
546546

547-
// Compare source and resulting path lengths to prevent empty, whitespace-only,
548-
// or directory traversal ('..') module names.
549-
if (path <= *i)
550-
{
551-
statusArray[ARG_TEXT] = (ISC_STATUS) "Invalid module name";
552-
553-
throw FbException(status, statusArray);
554-
}
555-
556547
ModuleLoader::Module* module = ModuleLoader::fixAndLoadModule(&statusArray[ARG_END], path);
557548
if (!module)
558549
throw FbException(status, statusArray);

0 commit comments

Comments
 (0)