contrib.dlint.dlint-equivalent.insecure-popen2-use

Author
221
Download Count*
The Python 'popen2' module is not secure against maliciously constructed input
Run Locally
Run in CI
Defintion
rules:
- id: insecure-popen2-use
message: The Python 'popen2' module is not secure against maliciously
constructed input
languages:
- python
severity: WARNING
metadata:
source_rule_url: https://github.com/dlint-py/dlint/blob/master/docs/linters/DUO126.md
category: security
technology:
- python
references:
- https://github.com/dlint-py/dlint/blob/master/docs/linters/DUO126.md
owasp:
- A01:2017 - Injection
- A03:2021 - Injection
cwe:
- "CWE-78: Improper Neutralization of Special Elements used in an OS
Command ('OS Command Injection')"
license: Commons Clause License Condition v1.0[LGPL-2.1-only]
patterns:
- pattern: popen2.$ANYTHING(...)
- pattern-not: popen2.$ANYTHING("...")
Short Link: https://sg.run/px2d