Finish comment

This commit is contained in:
haby0
2021-04-15 19:49:06 +08:00
parent d269a7e717
commit 0e183ab4a4
2 changed files with 3 additions and 2 deletions

View File

@@ -13,8 +13,9 @@ import semmle.code.java.frameworks.spring.SpringController
abstract class RequestGetMethod extends Method {
RequestGetMethod() {
not exists(MethodAccess ma |
// Exclude apparent GET handlers that read a request entity, because this is the principle of JSONP.
ma.getMethod() instanceof ServletRequestGetBodyMethod and
any(this).polyCalls*(ma.getEnclosingCallable())
this.polyCalls*(ma.getEnclosingCallable())
)
}
}

View File

@@ -76,4 +76,4 @@ from DataFlow::PathNode source, DataFlow::PathNode sink, SensitiveGetQueryConfig
where c.hasFlowPath(source, sink)
select sink.getNode(), source, sink,
"$@ uses the GET request method to transmit sensitive information.", source.getNode(),
"This request"
"This request"