diff --git a/lib/php-extension/Hooks.cpp b/lib/php-extension/Hooks.cpp index bf704763..4fc67b21 100644 --- a/lib/php-extension/Hooks.cpp +++ b/lib/php-extension/Hooks.cpp @@ -37,10 +37,6 @@ unordered_map HOOKED_FUNCTIONS = { AIKIDO_REGISTER_FUNCTION_HANDLER_EX(symlink, handle_pre_file_path_access_2), AIKIDO_REGISTER_FUNCTION_HANDLER_EX(touch, handle_pre_file_path_access), AIKIDO_REGISTER_FUNCTION_HANDLER_EX(unlink, handle_pre_file_path_access), - AIKIDO_REGISTER_FUNCTION_HANDLER_EX(require, handle_pre_file_path_access), - AIKIDO_REGISTER_FUNCTION_HANDLER_EX(require_once, handle_pre_file_path_access), - AIKIDO_REGISTER_FUNCTION_HANDLER_EX(include, handle_pre_file_path_access), - AIKIDO_REGISTER_FUNCTION_HANDLER_EX(include_once, handle_pre_file_path_access), }; unordered_map HOOKED_METHODS = { diff --git a/tests/cli/bait_file.txt b/tests/cli/bait_file.txt new file mode 100644 index 00000000..e69de29b diff --git a/tests/cli/path_traversal/test_path_traversal_include.phpt b/tests/cli/path_traversal/test_path_traversal_include.phpt deleted file mode 100644 index c608bb9e..00000000 --- a/tests/cli/path_traversal/test_path_traversal_include.phpt +++ /dev/null @@ -1,20 +0,0 @@ ---TEST-- -Test path traversal (include) - ---ENV-- -AIKIDO_LOG_LEVEL=INFO -AIKIDO_BLOCK=1 - ---FILE-- - - ---EXPECTREGEX-- -.*Fatal error: Uncaught Exception: Aikido firewall has blocked a path traversal attack.* diff --git a/tests/cli/path_traversal/test_path_traversal_include_once.phpt b/tests/cli/path_traversal/test_path_traversal_include_once.phpt deleted file mode 100644 index 562120f5..00000000 --- a/tests/cli/path_traversal/test_path_traversal_include_once.phpt +++ /dev/null @@ -1,20 +0,0 @@ ---TEST-- -Test path traversal (include_once) - ---ENV-- -AIKIDO_LOG_LEVEL=INFO -AIKIDO_BLOCK=1 - ---FILE-- - - ---EXPECTREGEX-- -.*Fatal error: Uncaught Exception: Aikido firewall has blocked a path traversal attack.* diff --git a/tests/cli/path_traversal/test_path_traversal_require.phpt b/tests/cli/path_traversal/test_path_traversal_require.phpt deleted file mode 100644 index 717c7aff..00000000 --- a/tests/cli/path_traversal/test_path_traversal_require.phpt +++ /dev/null @@ -1,20 +0,0 @@ ---TEST-- -Test path traversal (require) - ---ENV-- -AIKIDO_LOG_LEVEL=INFO -AIKIDO_BLOCK=1 - ---FILE-- - - ---EXPECTREGEX-- -.*Fatal error: Uncaught Exception: Aikido firewall has blocked a path traversal attack.* diff --git a/tests/cli/path_traversal/test_path_traversal_require_once.phpt b/tests/cli/path_traversal/test_path_traversal_require_once.phpt deleted file mode 100644 index 05be0cc4..00000000 --- a/tests/cli/path_traversal/test_path_traversal_require_once.phpt +++ /dev/null @@ -1,20 +0,0 @@ ---TEST-- -Test path traversal (require_once) - ---ENV-- -AIKIDO_LOG_LEVEL=INFO -AIKIDO_BLOCK=1 - ---FILE-- - - ---EXPECTREGEX-- -.*Fatal error: Uncaught Exception: Aikido firewall has blocked a path traversal attack.*