subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
return {"ok": False, "error": "当前系统缺少 osascript"} try: result = subprocess.run( ["osascript", "-e", script], capture_output=True, text=True,- Confidence
- 94% confidence
- Finding
- The skill executes dynamically constructed AppleScript via osascript, and some scripts interpolate user-controlled values such as query strings and track URIs. Although quotes and backslashes are escaped, AppleScript source injection remains a sensitive sink, and this code also enables UI automation of other apps, making misuse more impactful than a normal subprocess call.
