subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# 用 print-to-pdf 全 deck 一张 PDF,再 pdftoppm 拆 PNG pdf_path = output_dir / 'preview.pdf' subprocess.run([ chrome, '--headless', '--disable-gpu', '--no-sandbox', '--print-to-pdf=' + str(pdf_path), '--print-to-pdf-no-header',- Confidence
- 95% confidence
- Finding
- The script launches headless Chrome with --no-sandbox on attacker-influenced HTML generated from deck content. If untrusted input reaches preview.html, this removes an important browser isolation layer and increases the blast radius of any browser exploit or active-content abuse during rendering.
