mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
20 lines
586 B
Plaintext
20 lines
586 B
Plaintext
private import codeql.ruby.AST
|
|
private import codeql.ruby.frameworks.Rack
|
|
private import codeql.ruby.DataFlow
|
|
|
|
query predicate rackApps(
|
|
Rack::App::App app, DataFlow::ParameterNode env, Rack::Response::ResponseNode resp
|
|
) {
|
|
env = app.getEnv() and resp = app.getAResponse()
|
|
}
|
|
|
|
query predicate rackResponseContentTypes(
|
|
Rack::Response::ResponseNode resp, DataFlow::Node contentType
|
|
) {
|
|
contentType = resp.getMimetypeOrContentTypeArg()
|
|
}
|
|
|
|
query predicate redirectResponses(Rack::Response::RedirectResponse resp, DataFlow::Node location) {
|
|
location = resp.getRedirectLocation()
|
|
}
|