bandit
bandit copied to clipboard
Not all use of ftplib is insecure
Some use of ftplib is properly secure. See https://docs.python.org/2/library/ftplib.html
Specifically using ftplib.FTP_TLS mode is okay, where as ftplib.FTP is not.
@ericwb was this closed by mistake? At $work we're hitting this false positive in Bandit 1.7.5.
Possibly. We do have the following that finds cases of ftplib calls, but it doesn't distinguish between FTP and FTP_TLS.
https://bandit.readthedocs.io/en/latest/blacklists/blacklist_calls.html#b321-ftplib