Skip to content

Commit c8a2ca6

Browse files
committed
tests(hg): Check for URL command injection vuln
1 parent 6cbba39 commit c8a2ca6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_hg.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,6 @@ def test_vulnerability_2022_03_12_command_injection(
9494
with pytest.raises(Exception):
9595
mercurial_repo.update_repo()
9696

97-
assert pathlib.Path(random_dir / "HELLO").exists()
97+
assert not pathlib.Path(
98+
random_dir / "HELLO"
99+
).exists(), "Prevent command injection in hg aliases"

0 commit comments

Comments
 (0)