Prevent terminal symlink traversal via recursive grep
This commit is contained in:
1 parent
91d36a98e3
commit
2f4bff550e
2 files changed
+5
-1
No files matched your search
@@ -80,6 +80,8 @@ class AthenaTerminalTests(unittest.TestCase):
|
||||
self.module.validate_arguments("rg", ["--pre", "sh", "x"], self.workspace)
|
||||
with self.assertRaises(PermissionError):
|
||||
self.module.validate_arguments("find", ["."], self.workspace)
|
||||
with self.assertRaises(ValueError):
|
||||
self.module.validate_arguments("grep", ["-R", "Athena", "."], self.workspace)
|
||||
|
||||
def test_validation_parses_without_execution(self):
|
||||
result = self.module.validate_source({"path": "valid.json", "kind": "auto"})
|
||||
|
||||
Reference in new issue
Block a user