subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if to_target: cron_args.extend(["--to", to_target]) try: subprocess.run(cron_args, capture_output=True, text=True, timeout=30) except (subprocess.TimeoutExpired, FileNotFoundError): pass- Confidence
- 85% confidence
- Finding
- This subprocess call constructs `cron_args` using channel and chat ID values derived from session metadata or configuration, then creates scheduled jobs that can send messages to those targets. Although there is no shell injection, untrusted metadata can influence where reminders are delivered, creating a confused-deputy/privacy issue that may send notifications to the wrong recipient.
