Merge pull request #12555 from asgerf/js/block-modes

JS: Include weak block modes as sink in weak crypto algorithm
This commit is contained in:
Asger F
2023-03-17 13:23:23 +01:00
committed by GitHub
4 changed files with 21 additions and 1 deletions

View File

@@ -40,7 +40,11 @@ module BrokenCryptoAlgorithm {
class WeakCryptographicOperationSink extends Sink {
WeakCryptographicOperationSink() {
exists(CryptographicOperation application |
application.getAlgorithm().isWeak() and
(
application.getAlgorithm().isWeak()
or
application.getBlockMode().isWeak()
) and
this = application.getAnInput()
)
}