mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JS: Use API graphs in CryptoJS
This commit is contained in:
@@ -291,13 +291,13 @@ private module CryptoJS {
|
||||
* ```
|
||||
*/
|
||||
|
||||
exists(DataFlow::SourceNode mod, DataFlow::PropRead propRead |
|
||||
mod = DataFlow::moduleImport("crypto-js") and
|
||||
propRead = mod.getAPropertyRead("algo").getAPropertyRead() and
|
||||
this = propRead.getAMemberCall("create") and
|
||||
algorithmName = propRead.getPropertyName() and
|
||||
not isStrongPasswordHashingAlgorithm(algorithmName)
|
||||
)
|
||||
this =
|
||||
API::moduleImport("crypto-js")
|
||||
.getMember("algo")
|
||||
.getMember(algorithmName)
|
||||
.getMember("create")
|
||||
.getACall() and
|
||||
not isStrongPasswordHashingAlgorithm(algorithmName)
|
||||
}
|
||||
|
||||
CryptographicAlgorithm getAlgorithm() { result.matchesName(algorithmName) }
|
||||
|
||||
Reference in New Issue
Block a user