Ruby: limit rb/sensitive-get-query to data from query params

This commit is contained in:
Alex Ford
2022-10-05 12:57:57 +01:00
parent 977e8a8a6f
commit 084efe062a

View File

@@ -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 }