Skip to content

Commit

Permalink
Merge pull request #16482 from grakshith/rakshith/tune-java-crypto
Browse files Browse the repository at this point in the history
Java: Add RSA/ECB/OEAP ciphers to the list of secure algorithms
  • Loading branch information
atorralba committed Jun 10, 2024
2 parents 7ecf1f9 + 798a736 commit 7336dd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ private class ShortStringLiteral extends StringLiteral {
class BrokenAlgoLiteral extends ShortStringLiteral {
BrokenAlgoLiteral() {
this.getValue().regexpMatch(getInsecureAlgorithmRegex()) and
// Exclude RSA/ECB/.* ciphers.
not this.getValue().regexpMatch("RSA/ECB.*") and
// Exclude German and French sentences.
not this.getValue().regexpMatch(".*\\p{IsLowercase} des \\p{IsLetter}.*")
}
Expand Down
4 changes: 4 additions & 0 deletions java/ql/src/change-notes/2024-05-13-rsa-ecb-secure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
category: majorAnalysis
---
* The query `java/weak-cryptographic-algorithm` no longer alerts about `RSA/ECB` algorithm strings.

0 comments on commit 7336dd1

Please sign in to comment.