mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
Finish comment
This commit is contained in:
@@ -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())
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user