You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call bandit bandit_bug.py
With bandit 1.7.5 you will get the following output:
>> Issue: [B324:hashlib] Use of insecure MD5 hash function.
Severity: Medium Confidence: High
CWE: CWE-327 (https://cwe.mitre.org/data/definitions/327.html)
More Info: https://bandit.readthedocs.io/en/1.7.5/plugins/b324_hashlib.html
Location: bandit_bug.py:3:12
Expected behavior
There has been some work done on usedforsecurity=False in bandit in the past:
Describe the bug
Since the latest 1.7.5 release,
code that used to not raise warnings is now detected as invalid by
bandit
Reproduction steps
bandit_bug.py
bandit bandit_bug.py
With
bandit 1.7.5
you will get the following output:Expected behavior
There has been some work done on
usedforsecurity=False
inbandit
in the past:I was expecting no warning when
usedforsecurity=False
is passed tohashlib.new("md5")
Bandit version
1.7.5 (Default)
Python version
3.8
Additional context
No response
The text was updated successfully, but these errors were encountered: