mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Simplify the query
This commit is contained in:
@@ -12,11 +12,11 @@
|
||||
|
||||
import java
|
||||
|
||||
from MethodAccess call, Method method
|
||||
from MethodAccess call
|
||||
where
|
||||
call.getMethod() = method and
|
||||
method.hasName("disable") and
|
||||
method.getDeclaringType().getQualifiedName().regexpMatch(
|
||||
"org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<CsrfConfigurer<.*>,.*>"
|
||||
call.getMethod().hasName("disable") and
|
||||
call.getReceiverType().hasQualifiedName(
|
||||
"org.springframework.security.config.annotation.web.configurers",
|
||||
"CsrfConfigurer<HttpSecurity>"
|
||||
)
|
||||
select call, "CSRF vulnerability due to protection being disabled."
|
||||
|
||||
Reference in New Issue
Block a user