We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40b87e6 commit 94d5f3bCopy full SHA for 94d5f3b
ruby/ql/src/queries/security/cwe-327/BrokenCryptoAlgorithm.ql
@@ -0,0 +1,20 @@
1
+/**
2
+ * @name Use of a broken or weak cryptographic algorithm
3
+ * @description Using broken or weak cryptographic algorithms can compromise security.
4
+ * @kind problem
5
+ * @problem.severity warning
6
+ * @security-severity 7.5
7
+ * @precision high
8
+ * @id rb/weak-cryptographic-algorithm
9
+ * @tags security
10
+ * external/cwe/cwe-327
11
+ */
12
+
13
+import ruby
14
+import codeql.ruby.Concepts
15
16
+from Cryptography::CryptographicOperation operation
17
+where operation.isWeak()
18
+select operation,
19
+ "The cryptographic algorithm " + operation.getAlgorithm().getName() +
20
+ " is broken or weak, and should not be used."
0 commit comments