Skip to content

Subprocess usage flagging #455

@ghost

Description

Describe the bug

Issue: [B404:blacklist] Consider possible security implications associated with subprocess module.

On

import subprocess

and

Issue: [B603:subprocess_without_shell_equals_true] subprocess call - check for execution of untrusted input.

On

result = subprocess.call(args, shell=False)

Expected behavior
Is that expected behaviour to flag import of subprocess module and also flag call function with shell=False ?

Bandit version

➜  bandit --version
bandit 1.5.1
  python version = 2.7.15 (default, Aug 17 2018, 22:39:05) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)]

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions