We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 871d2a2 commit d769775Copy full SHA for d769775
1 file changed
aikido_zen/sinks/tests/os_test.py
@@ -79,6 +79,15 @@ def test_os_create_path_with_multiple_slashes():
79
with pytest.raises(AikidoPathTraversal):
80
full_path = Path("flaskr/resources/blogs/") / file_path
81
open(full_path, "r").close()
82
+
83
+def test_os_create_path_with_multiple_double_slashes():
84
+ import os
85
86
+ file_path = "////etc//passwd"
87
+ set_context(file_path)
88
+ with pytest.raises(AikidoPathTraversal):
89
+ full_path = Path("flaskr/resources/blogs/") / file_path
90
+ open(full_path, "r").close()
91
92
93
def test_ospath_command_absolute_path():
0 commit comments