Skip to content

Commit 123eb1e

Browse files
smiddy007asgerf
andauthored
Update javascript/ql/lib/semmle/javascript/frameworks/CryptoLibraries.qll
Co-authored-by: Asger F <[email protected]>
1 parent 82f8090 commit 123eb1e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

javascript/ql/lib/semmle/javascript/frameworks/CryptoLibraries.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,10 @@ private module CryptoJS {
400400
Apply() {
401401
this = getEncryptionApplication(input, algorithm) or
402402
this = getDirectApplication(input, algorithm) or
403-
this = getUpdatedApplication(input, instantiation)
403+
exists(InstantiatedAlgorithm instantiation |
404+
this = getUpdatedApplication(input, instantiation) and
405+
algorithm = instantiation.getAlgorithm()
406+
)
404407
}
405408

406409
override DataFlow::Node getAnInput() { result = input.asSink() }

0 commit comments

Comments
 (0)