subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
execution_result = { 'plan_id': f"research_{hash(str(research_plan))}", 'started_at': str(subprocess.check_output(['date'])), 'dimensions': {}, 'summary': {} }- Confidence
- 88% confidence
- Finding
- The code invokes an external subprocess just to obtain the current date, which introduces unnecessary command-execution capability into a research orchestration component. While the specific call is constant and not user-controlled here, spawning subprocesses expands the attack surface and can become dangerous if later modified or reused with variable input.
