Skip to content

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

Closed

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

Activity

  1. spring-projects-issues commented on May 18, 2015

    @spring-projects-issues
    CollaboratorAuthor

    Rossen Stoyanchev commented

    I've added an httpMethods property to LocalChangeInterceptor.

  2. spring-projects-issues commented on May 22, 2015

    @spring-projects-issues
    CollaboratorAuthor

    Mark Janssen commented

    Cheers!

  3. added
    type: enhancement
    in: web
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: webtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions