mirror of
https://github.com/github/codeql.git
synced 2025-12-23 04:06:37 +01:00
Ruby: stop rb/sensitive-get-query from considering ID type data as sensitive
This commit is contained in:
@@ -38,6 +38,7 @@ from
|
||||
where
|
||||
handler.getAnHttpMethod() = "get" and
|
||||
input.asExpr().getExpr().getEnclosingMethod() = handler and
|
||||
localFlowWithElementReference(input, sensitive)
|
||||
localFlowWithElementReference(input, sensitive) and
|
||||
not sensitive.getClassification() = SensitiveDataClassification::id()
|
||||
select input, "$@ for GET requests uses query parameter as sensitive data.", handler,
|
||||
"Route handler"
|
||||
|
||||
Reference in New Issue
Block a user