Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 998aa95 commit e3c1b96Copy full SHA for e3c1b96
1 file changed
java/ql/src/experimental/Security/CWE/CWE-352/JsonpInjectionLib.qll
@@ -47,8 +47,8 @@ class SpringControllerRequestMappingGetMethod extends SpringControllerGetMethod
47
.getType()
48
.hasQualifiedName("org.springframework.web.bind.annotation", "RequestMapping") and
49
(
50
- this.getAnAnnotation().getEnumConstantValue("method").getName() = "GET" or
51
- this.getAnAnnotation().getValue("method").(ArrayInit).getSize() = 0 //Java code example: @RequestMapping(value = "test")
+ this.getAnAnnotation().getAnEnumConstantArrayValue("method").getName() = "GET" or
+ not exists(this.getAnAnnotation().getAnArrayValue("method")) //Java code example: @RequestMapping(value = "test")
52
) and
53
not this.getAParamType().getName() = "MultipartFile"
54
}
0 commit comments