mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
32 lines
1018 B
Plaintext
32 lines
1018 B
Plaintext
/**
|
|
* Provides a taint-tracking configuration for detecting flow of query string
|
|
* data to sensitive actions in GET query request handlers.
|
|
*
|
|
* Note, for performance reasons: only import this file if `Configuration` is
|
|
* needed, otherwise `SensitiveGetQueryCustomizations` should be imported
|
|
* instead.
|
|
*/
|
|
|
|
private import ruby
|
|
private import codeql.ruby.TaintTracking
|
|
|
|
/**
|
|
* Provides a taint-tracking configuration for detecting flow of query string
|
|
* data to sensitive actions in GET query request handlers.
|
|
*/
|
|
module SensitiveGetQuery {
|
|
import SensitiveGetQueryCustomizations::SensitiveGetQuery
|
|
|
|
/**
|
|
* A taint-tracking configuration for reasoning about use of sensitive data
|
|
* from a GET request query string.
|
|
*/
|
|
class Configuration extends TaintTracking::Configuration {
|
|
Configuration() { this = "SensitiveGetQuery" }
|
|
|
|
override predicate isSource(DataFlow::Node source) { source instanceof Source }
|
|
|
|
override predicate isSink(DataFlow::Node sink) { sink instanceof Sink }
|
|
}
|
|
}
|