mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Address code review comments
This commit is contained in:
@@ -28,7 +28,8 @@ deprecated class IntentRedirectionConfiguration extends TaintTracking::Configura
|
||||
}
|
||||
}
|
||||
|
||||
private module IntentRedirectionConfig implements DataFlow::ConfigSig {
|
||||
/** A taint tracking configuration for tainted Intents being used to start Android components. */
|
||||
module IntentRedirectionConfig implements DataFlow::ConfigSig {
|
||||
predicate isSource(DataFlow::Node source) { source instanceof RemoteFlowSource }
|
||||
|
||||
predicate isSink(DataFlow::Node sink) { sink instanceof IntentRedirectionSink }
|
||||
@@ -40,7 +41,7 @@ private module IntentRedirectionConfig implements DataFlow::ConfigSig {
|
||||
}
|
||||
}
|
||||
|
||||
/** A taint tracking configuration for tainted Intents being used to start Android components. */
|
||||
/** Tracks the flow of tainted Intents being used to start Android components. */
|
||||
module IntentRedirectionFlow = TaintTracking::Make<IntentRedirectionConfig>;
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,7 +23,10 @@ deprecated class FetchUntrustedResourceConfiguration extends TaintTracking::Conf
|
||||
}
|
||||
}
|
||||
|
||||
private module FetchUntrustedResourceConfig implements DataFlow::ConfigSig {
|
||||
/**
|
||||
* A taint configuration tracking flow from untrusted inputs to a resource fetching call.
|
||||
*/
|
||||
module FetchUntrustedResourceConfig implements DataFlow::ConfigSig {
|
||||
predicate isSource(DataFlow::Node source) { source instanceof RemoteFlowSource }
|
||||
|
||||
predicate isSink(DataFlow::Node sink) { sink instanceof UrlResourceSink }
|
||||
@@ -31,4 +34,7 @@ private module FetchUntrustedResourceConfig implements DataFlow::ConfigSig {
|
||||
predicate isBarrier(DataFlow::Node sanitizer) { sanitizer instanceof RequestForgerySanitizer }
|
||||
}
|
||||
|
||||
/**
|
||||
* Detects taint flow from untrusted inputs to a resource fetching call.
|
||||
*/
|
||||
module FetchUntrustedResourceFlow = TaintTracking::Make<FetchUntrustedResourceConfig>;
|
||||
|
||||
Reference in New Issue
Block a user