-
-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove default parameters * add default bandit configfile built with bandit-config-generator command * update changelog * update bandit doc page Co-authored-by: Nicolas Vuillamy <[email protected]>
- Loading branch information
Showing
4 changed files
with
304 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,302 @@ | ||
any_other_function_with_shell_equals_true: | ||
no_shell: | ||
- os.execl | ||
- os.execle | ||
- os.execlp | ||
- os.execlpe | ||
- os.execv | ||
- os.execve | ||
- os.execvp | ||
- os.execvpe | ||
- os.spawnl | ||
- os.spawnle | ||
- os.spawnlp | ||
- os.spawnlpe | ||
- os.spawnv | ||
- os.spawnve | ||
- os.spawnvp | ||
- os.spawnvpe | ||
- os.startfile | ||
shell: | ||
- os.system | ||
- os.popen | ||
- os.popen2 | ||
- os.popen3 | ||
- os.popen4 | ||
- popen2.popen2 | ||
- popen2.popen3 | ||
- popen2.popen4 | ||
- popen2.Popen3 | ||
- popen2.Popen4 | ||
- commands.getoutput | ||
- commands.getstatusoutput | ||
subprocess: | ||
- subprocess.Popen | ||
- subprocess.call | ||
- subprocess.check_call | ||
- subprocess.check_output | ||
- subprocess.run | ||
assert_used: | ||
skips: [] | ||
hardcoded_tmp_directory: | ||
tmp_dirs: | ||
- /tmp | ||
- /var/tmp | ||
- /dev/shm | ||
linux_commands_wildcard_injection: | ||
no_shell: | ||
- os.execl | ||
- os.execle | ||
- os.execlp | ||
- os.execlpe | ||
- os.execv | ||
- os.execve | ||
- os.execvp | ||
- os.execvpe | ||
- os.spawnl | ||
- os.spawnle | ||
- os.spawnlp | ||
- os.spawnlpe | ||
- os.spawnv | ||
- os.spawnve | ||
- os.spawnvp | ||
- os.spawnvpe | ||
- os.startfile | ||
shell: | ||
- os.system | ||
- os.popen | ||
- os.popen2 | ||
- os.popen3 | ||
- os.popen4 | ||
- popen2.popen2 | ||
- popen2.popen3 | ||
- popen2.popen4 | ||
- popen2.Popen3 | ||
- popen2.Popen4 | ||
- commands.getoutput | ||
- commands.getstatusoutput | ||
subprocess: | ||
- subprocess.Popen | ||
- subprocess.call | ||
- subprocess.check_call | ||
- subprocess.check_output | ||
- subprocess.run | ||
ssl_with_bad_defaults: | ||
bad_protocol_versions: | ||
- PROTOCOL_SSLv2 | ||
- SSLv2_METHOD | ||
- SSLv23_METHOD | ||
- PROTOCOL_SSLv3 | ||
- PROTOCOL_TLSv1 | ||
- SSLv3_METHOD | ||
- TLSv1_METHOD | ||
ssl_with_bad_version: | ||
bad_protocol_versions: | ||
- PROTOCOL_SSLv2 | ||
- SSLv2_METHOD | ||
- SSLv23_METHOD | ||
- PROTOCOL_SSLv3 | ||
- PROTOCOL_TLSv1 | ||
- SSLv3_METHOD | ||
- TLSv1_METHOD | ||
start_process_with_a_shell: | ||
no_shell: | ||
- os.execl | ||
- os.execle | ||
- os.execlp | ||
- os.execlpe | ||
- os.execv | ||
- os.execve | ||
- os.execvp | ||
- os.execvpe | ||
- os.spawnl | ||
- os.spawnle | ||
- os.spawnlp | ||
- os.spawnlpe | ||
- os.spawnv | ||
- os.spawnve | ||
- os.spawnvp | ||
- os.spawnvpe | ||
- os.startfile | ||
shell: | ||
- os.system | ||
- os.popen | ||
- os.popen2 | ||
- os.popen3 | ||
- os.popen4 | ||
- popen2.popen2 | ||
- popen2.popen3 | ||
- popen2.popen4 | ||
- popen2.Popen3 | ||
- popen2.Popen4 | ||
- commands.getoutput | ||
- commands.getstatusoutput | ||
subprocess: | ||
- subprocess.Popen | ||
- subprocess.call | ||
- subprocess.check_call | ||
- subprocess.check_output | ||
- subprocess.run | ||
start_process_with_no_shell: | ||
no_shell: | ||
- os.execl | ||
- os.execle | ||
- os.execlp | ||
- os.execlpe | ||
- os.execv | ||
- os.execve | ||
- os.execvp | ||
- os.execvpe | ||
- os.spawnl | ||
- os.spawnle | ||
- os.spawnlp | ||
- os.spawnlpe | ||
- os.spawnv | ||
- os.spawnve | ||
- os.spawnvp | ||
- os.spawnvpe | ||
- os.startfile | ||
shell: | ||
- os.system | ||
- os.popen | ||
- os.popen2 | ||
- os.popen3 | ||
- os.popen4 | ||
- popen2.popen2 | ||
- popen2.popen3 | ||
- popen2.popen4 | ||
- popen2.Popen3 | ||
- popen2.Popen4 | ||
- commands.getoutput | ||
- commands.getstatusoutput | ||
subprocess: | ||
- subprocess.Popen | ||
- subprocess.call | ||
- subprocess.check_call | ||
- subprocess.check_output | ||
- subprocess.run | ||
start_process_with_partial_path: | ||
no_shell: | ||
- os.execl | ||
- os.execle | ||
- os.execlp | ||
- os.execlpe | ||
- os.execv | ||
- os.execve | ||
- os.execvp | ||
- os.execvpe | ||
- os.spawnl | ||
- os.spawnle | ||
- os.spawnlp | ||
- os.spawnlpe | ||
- os.spawnv | ||
- os.spawnve | ||
- os.spawnvp | ||
- os.spawnvpe | ||
- os.startfile | ||
shell: | ||
- os.system | ||
- os.popen | ||
- os.popen2 | ||
- os.popen3 | ||
- os.popen4 | ||
- popen2.popen2 | ||
- popen2.popen3 | ||
- popen2.popen4 | ||
- popen2.Popen3 | ||
- popen2.Popen4 | ||
- commands.getoutput | ||
- commands.getstatusoutput | ||
subprocess: | ||
- subprocess.Popen | ||
- subprocess.call | ||
- subprocess.check_call | ||
- subprocess.check_output | ||
- subprocess.run | ||
subprocess_popen_with_shell_equals_true: | ||
no_shell: | ||
- os.execl | ||
- os.execle | ||
- os.execlp | ||
- os.execlpe | ||
- os.execv | ||
- os.execve | ||
- os.execvp | ||
- os.execvpe | ||
- os.spawnl | ||
- os.spawnle | ||
- os.spawnlp | ||
- os.spawnlpe | ||
- os.spawnv | ||
- os.spawnve | ||
- os.spawnvp | ||
- os.spawnvpe | ||
- os.startfile | ||
shell: | ||
- os.system | ||
- os.popen | ||
- os.popen2 | ||
- os.popen3 | ||
- os.popen4 | ||
- popen2.popen2 | ||
- popen2.popen3 | ||
- popen2.popen4 | ||
- popen2.Popen3 | ||
- popen2.Popen4 | ||
- commands.getoutput | ||
- commands.getstatusoutput | ||
subprocess: | ||
- subprocess.Popen | ||
- subprocess.call | ||
- subprocess.check_call | ||
- subprocess.check_output | ||
- subprocess.run | ||
subprocess_without_shell_equals_true: | ||
no_shell: | ||
- os.execl | ||
- os.execle | ||
- os.execlp | ||
- os.execlpe | ||
- os.execv | ||
- os.execve | ||
- os.execvp | ||
- os.execvpe | ||
- os.spawnl | ||
- os.spawnle | ||
- os.spawnlp | ||
- os.spawnlpe | ||
- os.spawnv | ||
- os.spawnve | ||
- os.spawnvp | ||
- os.spawnvpe | ||
- os.startfile | ||
shell: | ||
- os.system | ||
- os.popen | ||
- os.popen2 | ||
- os.popen3 | ||
- os.popen4 | ||
- popen2.popen2 | ||
- popen2.popen3 | ||
- popen2.popen4 | ||
- popen2.Popen3 | ||
- popen2.Popen4 | ||
- commands.getoutput | ||
- commands.getstatusoutput | ||
subprocess: | ||
- subprocess.Popen | ||
- subprocess.call | ||
- subprocess.check_call | ||
- subprocess.check_output | ||
- subprocess.run | ||
try_except_continue: | ||
check_typed_exception: false | ||
try_except_pass: | ||
check_typed_exception: false | ||
weak_cryptographic_key: | ||
weak_key_size_dsa_high: 1024 | ||
weak_key_size_dsa_medium: 2048 | ||
weak_key_size_ec_high: 160 | ||
weak_key_size_ec_medium: 224 | ||
weak_key_size_rsa_high: 1024 | ||
weak_key_size_rsa_medium: 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters