
    >/iM                         S r SSKrSSKJr  SSKJr  S r\R                  " S5      \R                  " S5      S 5       5       r	g)	a,  
==============================
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:

.. code-block:: none

    >> Issue: Use of exec detected.
       Severity: Medium   Confidence: High
       CWE: CWE-78 (https://cwe.mitre.org/data/definitions/78.html)
       Location: ./examples/exec.py:2
    1 exec("do evil")


.. seealso::

 - https://docs.python.org/3/library/functions.html#exec
 - https://www.python.org/dev/peps/pep-0551/#background
 - https://www.python.org/dev/peps/pep-0578/#suggested-audit-hook-locations
 - https://cwe.mitre.org/data/definitions/78.html

.. versionadded:: 0.9.0

.. versionchanged:: 1.7.3
    CWE information added

    N)issue)test_propertiesc                      [         R                  " [         R                  [         R                  [        R
                  R                  SS9$ )NzUse of exec detected.)severity
confidencecwetext)banditIssueMEDIUMHIGHr   CweOS_COMMAND_INJECTION     M/home/james-whalen/.local/lib/python3.13/site-packages/bandit/plugins/exec.py
exec_issuer   *   s1    <<;;II**$	 r   CallB102c                 8    U R                   S:X  a
  [        5       $ g )Nexec)call_function_name_qualr   )contexts    r   	exec_usedr   3   s     &&&0| 1r   )
__doc__r
   bandit.corer   r   testr   checkstest_idr   r   r   r   <module>r       sI   
@   / Vf  r   