Refactor HardcodedCredentialsSourceCall

This commit is contained in:
Ed Minnix
2023-04-03 14:01:20 -04:00
parent 15d5ad7a66
commit 735a7383c6
3 changed files with 47 additions and 13 deletions

View File

@@ -12,11 +12,11 @@
import java
import semmle.code.java.security.HardcodedCredentialsSourceCallQuery
import DataFlow::PathGraph
import HardcodedCredentialSourceCallFlow::PathGraph
from
DataFlow::PathNode source, DataFlow::PathNode sink,
HardcodedCredentialSourceCallConfiguration conf
where conf.hasFlowPath(source, sink)
HardcodedCredentialSourceCallFlow::PathNode source,
HardcodedCredentialSourceCallFlow::PathNode sink
where HardcodedCredentialSourceCallFlow::flowPath(source, sink)
select source.getNode(), source, sink, "Hard-coded value flows to $@.", sink.getNode(),
"sensitive call"