mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Ruby: limit rb/sensitive-get-query to data from query params
This commit is contained in:
@@ -32,7 +32,8 @@ module SensitiveGetQuery {
|
||||
|
||||
RequestInputAccessSource() {
|
||||
handler = this.asExpr().getExpr().getEnclosingMethod() and
|
||||
handler.getAnHttpMethod() = "get"
|
||||
handler.getAnHttpMethod() = "get" and
|
||||
this.getSourceType().matches(["%params%", "%parameters%"])
|
||||
}
|
||||
|
||||
override Http::Server::RequestHandler getHandler() { result = handler }
|
||||
|
||||
Reference in New Issue
Block a user