subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
return False tmp_name = "pf_screenshot.png" result = subprocess.run([ chromium, "--headless", "--disable-gpu", "--no-sandbox", f"--window-size={width},{height}", f"--screenshot={tmp_name}",- Confidence
- 97% confidence
- Finding
- The code launches Chromium headless with --no-sandbox to render attacker-influenced HTML assembled from unsanitized user fields such as title, subtitle, labels, and code content. In a skill that generates posters from arbitrary user text, this materially increases risk because malicious HTML/JS can execute in an unsandboxed browser context and may access local files or exploit browser bugs with fewer containment barriers.
