avocado-framework/avocado

View on GitHub

Showing 884 of 901 total issues

Function call with shell=True parameter identified, possible security issue.
Open

    return process.run(cmd, shell=True).stdout_text

Function call with shell=True parameter identified, possible security issue.
Open

    output = process.run(cmd, ignore_status=True, shell=True).stdout_text
Severity: Minor
Found in avocado/utils/pci.py by bandit

Standard pseudo-random generators are not suitable for security/cryptographic purposes.
Open

            line = "".join(random.choice(string.ascii_letters + string.digits + "\n"))
Severity: Info
Found in selftests/unit/utils/genio.py by bandit

Function call with shell=True parameter identified, possible security issue.
Open

        if process.system(cmd, shell=True, ignore_status=True):
Severity: Minor
Found in avocado/utils/pmem.py by bandit

Consider possible security implications associated with CalledProcessError module.
Open

from subprocess import CalledProcessError, run

Severity: Info
Found in setup.py by bandit

subprocess call - check for execution of untrusted input.
Open

        run([sys.executable, "setup.py"] + action, cwd=parent_dir, check=True)
Severity: Info
Found in setup.py by bandit

Function call with shell=True parameter identified, possible security issue.
Open

        if process.system(
            f"{self.ndctl} disable-region {name}", shell=True, ignore_status=True
Severity: Minor
Found in avocado/utils/pmem.py by bandit

Standard pseudo-random generators are not suitable for security/cryptographic purposes.
Open

        combination_index = random.randint(0, len(possible_combinations) - 1)

Consider possible security implications associated with subprocess module.
Open

import subprocess
Severity: Info
Found in selftests/functional/interrupt.py by bandit

Try, Except, Pass detected.
Open

        except Exception:
Severity: Info
Found in selftests/unit/utils/cloudinit.py by bandit

Possible hardcoded password: 'PASSWORD'
Open

        session = ssh.Session("hostname", user="user", password="PASSWORD")
Severity: Info
Found in selftests/unit/utils/ssh.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert self.tmpdir is not None, "Job.setup() not called"
Severity: Info
Found in avocado/core/job.py by bandit

Probable insecure usage of temp file/directory.
Open

        output_lxc_path = "/tmp/.avocado_task_output_dir"

Severity: Minor
Found in avocado/plugins/spawners/lxc.py by bandit

Consider possible security implications associated with subprocess module.
Open

import subprocess
Severity: Info
Found in avocado/plugins/spawners/podman.py by bandit

subprocess call - check for execution of untrusted input.
Open

        process = subprocess.Popen(
            cmd,
            stdin=subprocess.DEVNULL,
            stdout=subprocess.PIPE,
            stderr=subprocess.DEVNULL,
Severity: Info
Found in avocado/plugins/spawners/podman.py by bandit

Probable insecure usage of temp file/directory.
Open

                        to = os.path.join("/tmp", asset)
Severity: Minor
Found in avocado/plugins/spawners/podman.py by bandit

Try, Except, Pass detected.
Open

            except Exception:  # pylint: disable=W0703
Severity: Info
Found in avocado/plugins/teststmpdir.py by bandit

Function call with shell=True parameter identified, possible security issue.
Open

    status = process.system(
        cmd, timeout=30, ignore_status=True, verbose=False, shell=True, sudo=True
Severity: Minor
Found in avocado/utils/dmesg.py by bandit

Use of possibly insecure function - consider using safer ast.literal_eval.
Open

            if eval(f"{_} {chunk_sizes}")
Severity: Minor
Found in avocado/utils/memory.py by bandit

Function call with shell=True parameter identified, possible security issue.
Open

    out = process.run(cmd, ignore_status=True, sudo=True, shell=True).stdout_text
Severity: Minor
Found in avocado/utils/nvme.py by bandit
Severity
Category
Status
Source
Language