mirror of
https://github.com/github/codeql.git
synced 2026-06-09 06:58:50 +02:00
An auto-generated patch that enables diff-informed data flow in the obvious cases. Builds on github#18346 and github/codeql-patch#88
28 lines
965 B
Plaintext
28 lines
965 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.
|
|
*/
|
|
module BasicAuthFlowConfig implements DataFlow::ConfigSig {
|
|
predicate isSource(DataFlow::Node src) { src instanceof InsecureBasicAuthSource }
|
|
|
|
predicate isSink(DataFlow::Node sink) { sink instanceof InsecureBasicAuthSink }
|
|
|
|
predicate isAdditionalFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
|
|
any(HttpUrlsAdditionalTaintStep c).step(node1, node2)
|
|
}
|
|
|
|
predicate observeDiffInformedIncrementalMode() { any() }
|
|
}
|
|
|
|
/**
|
|
* Tracks flow for the Basic authentication scheme being used in HTTP connections.
|
|
*/
|
|
module InsecureBasicAuthFlow = TaintTracking::Global<BasicAuthFlowConfig>;
|