mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Cryptographic sinks
This commit is contained in:
@@ -4,6 +4,7 @@ import java
|
||||
import semmle.code.java.frameworks.Servlets
|
||||
import semmle.code.java.security.SensitiveActions
|
||||
import semmle.code.java.dataflow.TaintTracking
|
||||
import semmle.code.java.dataflow.ExternalFlow
|
||||
import semmle.code.java.security.RandomQuery
|
||||
|
||||
/**
|
||||
@@ -108,6 +109,10 @@ private class SensitiveActionSink extends WeakRandomnessSink {
|
||||
SensitiveActionSink() { this.asExpr() instanceof SensitiveExpr }
|
||||
}
|
||||
|
||||
private class CryptographicSink extends WeakRandomnessSink {
|
||||
CryptographicSink() { sinkNode(this, "crypto-parameter") }
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if there is a method access which converts `bytes` to the string `str`.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user