-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python: Future-proof use-ftp-tls for stdlib libdefs #3457
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this looks good: appreciate the in depth comment!
Thanks! I'll wait a bit to merge in case someone from the Code team wants to weigh in. |
@nmote
I recommend adding test case with FTP_TLS first, then see how the rule performs and if updates needed add them |
@inkz I think Nat is saying that in ftplib |
This is the test case that fails when this rule is run using libdefs: semgrep-rules/python/lang/security/audit/insecure-transport/ftplib/use-ftp-tls.py Lines 9 to 10 in a326e6f
|
It will be for the interfile engine, just like we currently hardcode information about the Java standard library. |
@nmote Cool! thanks |
Explanation in the rule