subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if path.startswith("/api/cron/") and path.endswith("/trigger"): cron_id = path.split("/")[3] try: subprocess.Popen(["openclaw", "cron", "run", cron_id], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) reply({"ok": True, "cron_id": cron_id, "action": "triggered"}) except Exception as e:- Confidence
- 95% confidence
- Finding
- subprocess.Popen(["openclaw", "cron", "run", cron_id], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
