Skip to content
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

New Python rule checks for ssl use with no timeout #609

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

ericwb
Copy link
Contributor

@ericwb ericwb commented Sep 29, 2024

The ssl.get_server_certificate function has a timeout parameter that defaults to the global timeout which itself defaults to None. When the value is None, the socket blocks forever.

Note: the timeout parameter wasn't added till Python 3.10. To fix this on earlier Python versions, someone would need to adjust the global timeout value.

PY046

The ssl.get_server_certificate function has a timeout parameter
that defaults to the global timeout which itself defaults to
None. When the value is None, the socket blocks forever.

Note: the timeout parameter wasn't added till Python 3.10. To
fix this on earlier Python versions, someone would need to adjust
the global timeout value.

PY046

Signed-off-by: Eric Brown <[email protected]>
@ericwb ericwb merged commit 806c87c into securesauce:main Sep 29, 2024
8 checks passed
@ericwb ericwb deleted the ssl_no_timeout branch September 29, 2024 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant