Zum Inhalt springen

Disabled CSRF (ARCH8125)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Key kotlin.security.disabled-csrf · Severity warning · Category security · CWE CWE-352

Flags csrf().disable() / csrf { disable() } in a Spring Security configuration.

http.csrf { it.disable() }
http.csrf { it.csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse()) }

Keep CSRF on for cookie-authenticated endpoints; disable only for token-only stateless APIs, per route.