707 B
707 B
exec_used
Description
This plugin test checks for the use of Python's exec method or keyword. The Python docs succinctly describe why the use of exec is risky:
- This statement supports dynamic execution of Python code.1
Available Since
- Bandit v0.9.0
Config Options
None
Sample Output
>> Issue: Use of exec detected.
Severity: Medium Confidence: High
Location: ./examples/exec-py2.py:2
1 exec("do evil")
2 exec "do evil"