We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b6c6ea commit 549943bCopy full SHA for 549943b
aikido_zen/sinks/tests/os_test.py
@@ -91,6 +91,16 @@ def test_os_create_path_with_multiple_double_slashes():
91
open(full_path, "r").close()
92
93
94
+def test_os_path_traversal_with_multiple_slashes():
95
+ import os
96
+
97
+ file_path = "home///..////..////my_secret.txt"
98
+ set_context(file_path)
99
+ with pytest.raises(AikidoPathTraversal):
100
+ full_path = Path("flaskr/resources/blogs/") / file_path
101
+ open(full_path, "r").close()
102
103
104
def test_ospath_command_absolute_path():
105
with patch(
106
"aikido_zen.vulnerabilities.run_vulnerability_scan"
0 commit comments