Skip to content

Commit

Permalink
Update recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-mc committed Dec 4, 2024
1 parent 5c99c8c commit 95116ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/ql/lib/semmle/code/java/security/Encryption.qll
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,11 @@ predicate insecureAlgorithm(string name, string reason) {
or
name = "ECB" and
reason =
"Encryption mode ECB like AES/ECB/NoPadding is vulnerable to replay and other attacks. Use a different encryption mode."
"Encryption mode ECB like AES/ECB/NoPadding is vulnerable to replay and other attacks. Consider using a different encryption mode, like CBC or GCM, instead."
or
name = "AES/CBC/PKCS[57]Padding" and
reason =
"CBC mode of operation with PKCS#5 or PKCS#7 padding is vulnerable to padding oracle attacks. Consider using AES instead."
"CBC mode of operation with PKCS#5 or PKCS#7 padding is vulnerable to padding oracle attacks. Consider using GCM encryption mode instead."
}

/**
Expand Down

0 comments on commit 95116ee

Please sign in to comment.