B102: exec_used¶
B102: Test for the use of exec¶
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.
| Example: | 
|---|
>> Issue: Use of exec detected.
   Severity: Medium   Confidence: High
   Location: ./examples/exec-py2.py:2
1 exec("do evil")
2 exec "do evil"
See also
- https://docs.python.org/2.0/ref/exec.html
- TODO: add info on exec and similar to sec best practice and link here
New in version 0.9.0.