contrib.dlint.dlint-equivalent.insecure-tempfile-use

Author
221
Download Count*
The Python 'tempfile.mktemp' function allows for race conditions
Run Locally
Run in CI
Defintion
rules:
- id: insecure-tempfile-use
message: The Python 'tempfile.mktemp' function allows for race conditions
languages:
- python
severity: WARNING
metadata:
source_rule_url: https://github.com/dlint-py/dlint/blob/master/docs/linters/DUO121.md
category: security
technology:
- python
references:
- https://github.com/dlint-py/dlint/blob/master/docs/linters/DUO121.md
owasp:
- A09:2017 - Using Components with Known Vulnerabilities
- A06:2021 - Vulnerable and Outdated Components
cwe:
- "CWE-689: Permission Race Condition During Resource Copy"
license: Commons Clause License Condition v1.0[LGPL-2.1-only]
pattern: tempfile.mktemp(...)
Short Link: https://sg.run/l26D