subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
print(f"📥 Downloading WireMock {wiremock_version}...") try: subprocess.run( ['curl', '-L', '-o', wiremock_jar, wiremock_url], check=True )- Confidence
- 89% confidence
- Finding
- The script downloads an executable JAR from the internet and later runs it, but it does not verify a checksum, signature, or pinned artifact integrity before execution. If the download source, network path, or local environment is compromised, this can lead to execution of attacker-controlled code on the host.
