-
-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expanded filter of CBC ciphers to flag for the Terrapin vulnerability.
- Loading branch information
Showing
2 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -491,7 +491,7 @@ def _get_cbc_ciphers_enabled(algs: Algorithms) -> List[str]: | |
if algs.ssh2kex is not None: | ||
ciphers_supported = algs.ssh2kex.client.encryption if client_audit else algs.ssh2kex.server.encryption | ||
for cipher in ciphers_supported: | ||
if cipher.endswith("-cbc"): | ||
if cipher.endswith("-cbc") or cipher.endswith("[email protected]") or cipher.endswith("[email protected]") or cipher == "[email protected]": | ||
ret.append(cipher) | ||
|
||
return ret | ||
|
@@ -501,7 +501,7 @@ def _get_cbc_ciphers_not_enabled(db: Dict[str, Dict[str, List[List[Optional[str] | |
ret = [] | ||
|
||
for cipher in db["enc"]: | ||
if cipher.endswith("-cbc") and cipher not in _get_cbc_ciphers_enabled(algs): | ||
if (cipher.endswith("-cbc") or cipher.endswith("[email protected]") or cipher.endswith("[email protected]") or cipher == "[email protected]") and cipher not in _get_cbc_ciphers_enabled(algs): | ||
ret.append(cipher) | ||
|
||
return ret | ||
|