subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if not window_ids or sys.platform != "darwin" or not shutil.which("osascript"): return result = subprocess.run( ["osascript", "-e", CHROME_WINDOW_CLOSE_SCRIPT] + window_ids, capture_output=True, text=True,- Confidence
- 86% confidence
- Finding
- This subprocess closes Chrome windows using IDs gathered from a prior enumeration step, which gives the skill authority to modify local browser state unrelated to its stated purpose. Even without shell injection, that is an unjustified local-impact capability: mistakes or abuse could close user windows/tabs and disrupt active sessions or work.
