os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
report_content = f"""# 🛡️ Shield Pro Security Report v{__version__} **Date:** {os.popen('date -u +"%Y-%m-%dT%H:%M:%SZ"').read().strip()} **Scan Status:** {status_icon} **{status_text}** ## 1. Executive Summary- Confidence
- 96% confidence
- Finding
- The code invokes a shell via os.popen solely to obtain the current UTC timestamp for report generation. Even though the command string is constant and not directly attacker-controlled here, spawning a shell expands the tool's execution surface and violates least privilege for a validation tool, making abuse easier if this pattern is later generalized or executed in restricted environments.
