mirror of
https://github.com/github/codeql.git
synced 2026-01-21 02:14:45 +01:00
23 lines
848 B
Plaintext
23 lines
848 B
Plaintext
/** Provides taint tracking configurations to be used in Insecure Basic Authentication queries. */
|
|
|
|
import java
|
|
import semmle.code.java.security.HttpsUrls
|
|
import semmle.code.java.security.InsecureBasicAuth
|
|
import semmle.code.java.dataflow.TaintTracking
|
|
|
|
/**
|
|
* A taint tracking configuration for the Basic authentication scheme
|
|
* being used in HTTP connections.
|
|
*/
|
|
class BasicAuthFlowConfig extends TaintTracking::Configuration {
|
|
BasicAuthFlowConfig() { this = "InsecureBasicAuth::BasicAuthFlowConfig" }
|
|
|
|
override predicate isSource(DataFlow::Node src) { src instanceof InsecureBasicAuthSource }
|
|
|
|
override predicate isSink(DataFlow::Node sink) { sink instanceof InsecureBasicAuthSink }
|
|
|
|
override predicate isAdditionalTaintStep(DataFlow::Node node1, DataFlow::Node node2) {
|
|
any(HttpUrlsAdditionalTaintStep c).step(node1, node2)
|
|
}
|
|
}
|