subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if cmd: try: import subprocess subprocess.run([cmd, "-f", str(target_dir)], check=False) break except Exception: pass- Confidence
- 93% confidence
- Finding
- The script invokes an external binary (`fc-cache`) as a side effect of filling a PDF form, using font files discovered relative to the input PDF. Although it does not use a shell, this still expands the attack surface, performs undisclosed system modification, and can trigger parsing of attacker-influenced font files by system font tooling, which is unnecessary for ordinary PDF annotation.
