subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
src.write(code.strip()) src_path = src.name result = subprocess.run( ['java', '-jar', plantuml_jar, f'-t{output_format}', src_path], capture_output=True, timeout=30- Confidence
- 91% confidence
- Finding
- This subprocess launches Java with a jar path taken from an environment variable, allowing execution of an attacker-controlled PlantUML jar if the environment is influenced by an adversary. Although arguments are passed safely as a list, the trust boundary violation can still lead to arbitrary code execution under the skill's privileges.
