mirror of
https://github.com/github/codeql.git
synced 2026-04-24 00:05:14 +02:00
Update ruby/ql/lib/codeql/ruby/frameworks/rack/internal/App.qll
Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
@@ -91,12 +91,10 @@ module App {
|
||||
/** A read of the query string via `env['QUERY_STRING']`. */
|
||||
private class EnvQueryStringRead extends Http::Server::RequestInputAccess::Range {
|
||||
EnvQueryStringRead() {
|
||||
exists(RequestHandler handler, DataFlow::ParameterNode env, ConstantValue key |
|
||||
handler.getEnv() = env
|
||||
|
|
||||
this = env.getAnElementRead(key) and
|
||||
key.isStringlikeValue("QUERY_STRING")
|
||||
)
|
||||
this =
|
||||
any(RequestHandler h)
|
||||
.getEnv()
|
||||
.getAnElementRead(ConstantValue::fromStringlikeValue("QUERY_STRING"))
|
||||
}
|
||||
|
||||
override string getSourceType() { result = "Rack env" }
|
||||
|
||||
Reference in New Issue
Block a user