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

Fix for CWE-295: Improper Certificate Validation #2932

Merged
merged 1 commit into from
Jul 27, 2022

Commits on Jan 6, 2022

  1. Fix for CWE-295: Improper Certificate Validation

    In the Secure Shell (SSH) protocol, host keys are used to verify the identity of remote hosts. Accepting unknown host keys may leave the connection open to man-in-the-middle attacks.
    
    Do not accept unknown host keys. In particular, do not set the default missing host key policy for the Paramiko library to either AutoAddPolicy or WarningPolicy. Both of these policies continue even when the host key is unknown. The default setting of RejectPolicy is secure because it throws an exception when it encounters an unknown host key.
    
    Reference: https://cwe.mitre.org/data/definitions/295.html
    Signed-off-by: Audun Nes <audun.nes@gmail.com>
    avnes committed Jan 6, 2022
    Configuration menu
    Copy the full SHA
    5de1360 View commit details
    Browse the repository at this point in the history