Skip to content

LocaleChangeInterceptor not protected against CSRF [SPR-13032] #17624

Closed
@spring-projects-issues

Description

@spring-projects-issues

Mark Janssen opened SPR-13032 and commented

When Spring Security CSRF protection is enabled, all POST requests are protected against CSRF. Logout requests are made HTTP POST-only to prevent against malicious logouts.

The LocaleChangeInterceptor also changes the user's (session) state, but is not protected against CSRF by default. In addition, there is no configuration option available to make it POST-only.


Affects: 4.1.6

Issue Links:

Referenced from: commits 90d5428, 0dd320f

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions