CodeQL library for Java/Kotlin
codeql/java-all 9.0.3 (changelog, source)
Search

Module CsrfUnprotectedRequestTypeQuery

Provides classes and predicates to reason about CSRF vulnerabilities due to use of unprotected HTTP request types.

Import path

import semmle.code.java.security.CsrfUnprotectedRequestTypeQuery

Imports

CallGraph

Provides classes and predicates representing call graph paths.

java

Provides all default Java QL imports.

Predicates

relevantEdge

Holds if pred has a successor node succ and this edge is in an unprotectedStateChange path.

unprotectedStateChange

Holds if source is an unprotected request handler that may change an application’s state.

Classes

CsrfUnprotectedMethod

A method that is not protected from CSRF by default.

DatabaseUpdateMethod

A method that updates a database.

Modules

CallGraph

Provides classes and predicates representing call graph paths.