mirror of
https://github.com/github/codeql.git
synced 2025-12-28 06:36:33 +01:00
20 lines
506 B
Plaintext
20 lines
506 B
Plaintext
/**
|
|
* @kind path-problem
|
|
*/
|
|
|
|
import ruby
|
|
import TestUtilities.InlineFlowTest
|
|
import PathGraph
|
|
import codeql.ruby.frameworks.Sinatra
|
|
import codeql.ruby.Concepts
|
|
|
|
class SinatraConf extends DefaultTaintFlowConf {
|
|
override predicate isSource(DataFlow::Node source) {
|
|
source instanceof Http::Server::RequestInputAccess::Range
|
|
}
|
|
}
|
|
|
|
from DataFlow::PathNode source, DataFlow::PathNode sink, SinatraConf conf
|
|
where conf.hasFlowPath(source, sink)
|
|
select sink, source, sink, "$@", source, source.toString()
|