Tainted flow: 'unit_content' from os.environ.get (line 425, credential/environment) → pathlib.Path.write_text (file write)
Medium
- Category
- Data Flow
- Content
WantedBy=multi-user.target """ unit_path = Path("/tmp/pvm.service") unit_path.write_text(unit_content) print(f"✅ Systemd unit written to {unit_path}") print(" To install (requires sudo):") print(f" sudo mv {unit_path} /etc/systemd/system/pvm.service")- Confidence
- 77% confidence
- Finding
- unit_path.write_text(unit_content)
