Skip to content

Use of exec() in setup.py #18

@Pascal-0x90

Description

@Pascal-0x90

Proposal

The use of exec can be dangerous potentially allowing execution of python code on a system.

Motivation

The codebase should more strictly follow Python convention to hopefully improve maintainability.

Details

Since this is the setup.py script, it may not need to be addressed as we assume this is something that will be deployed by the user and does not pose an immediate risk to the operation of the tool. This could/should be mitigated at some point to not use exec. The specific code is mentioned below:

exec(f.read(), pkg_vars) # nosec # pylint: disable=exec-used

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions