Commit 04e089e
committed
π‘οΈ Sentinel: [CRITICAL] Fix command injection in Windows file launch
π¨ Severity: CRITICAL
π‘ Vulnerability: Command injection via `subprocess.call` with `shell=True` and unsanitized filename when opening files on Windows.
π― Impact: An attacker who can control the filename could execute arbitrary shell commands.
π§ Fix: Replaced `subprocess.call` with `os.startfile(filename)` to securely open files on Windows.
β
Verification: Run the test suite and ensure no new regressions are found.1 parent 2a47494 commit 04e089e
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments