From 384cf4b233a41f0ad693a7cf86bf4ab056e45b61 Mon Sep 17 00:00:00 2001 From: Geoffrey White <40627776+geoffw0@users.noreply.github.com> Date: Mon, 18 Nov 2019 14:48:10 +0000 Subject: [PATCH] CPP: Recommendation and example for UseOfDeprecatedHardcodedProtocol.qhelp. --- .../Protocols/UseOfDeprecatedHardcodedProtocol.qhelp | 11 +++++++++++ .../Protocols/UseOfDeprecatedHardcodedProtocolBad.cpp | 7 +++++++ .../UseOfDeprecatedHardcodedProtocolGood.cpp | 7 +++++++ 3 files changed, 25 insertions(+) create mode 100644 cpp/ql/src/Likely Bugs/Protocols/UseOfDeprecatedHardcodedProtocolBad.cpp create mode 100644 cpp/ql/src/Likely Bugs/Protocols/UseOfDeprecatedHardcodedProtocolGood.cpp diff --git a/cpp/ql/src/Likely Bugs/Protocols/UseOfDeprecatedHardcodedProtocol.qhelp b/cpp/ql/src/Likely Bugs/Protocols/UseOfDeprecatedHardcodedProtocol.qhelp index 9be64e760b9..99b40ccb433 100644 --- a/cpp/ql/src/Likely Bugs/Protocols/UseOfDeprecatedHardcodedProtocol.qhelp +++ b/cpp/ql/src/Likely Bugs/Protocols/UseOfDeprecatedHardcodedProtocol.qhelp @@ -7,6 +7,17 @@
Using a deprecated hardcoded protocol instead of negotiating would lock your application to a protocol that has known vulnerabilities or weaknesses.
+Only use modern protocols such as TLS 1.2 or TLS 1.3.
+In the following example, the sslv2 protocol is specified. This protocol is out-of-date and its use is not recommended.
In the corrected example, the tlsv13 protocol is used instead.