-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: webAn issue in web modules (web, webmvc)An issue in web modules (web, webmvc)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: breaks-passivityA change that breaks passivity with the previous releaseA change that breaks passivity with the previous releasetype: enhancementA general enhancementA general enhancement
Milestone
Description
Summary
It seems the SwitchUserFilter
responds to all HTTP methods, making it vulnerable to CSRF attacks.
Actual Behavior
SwitchUserFilter
works for all HTTP methods and only needs a username parameter, j_username
(3.2) or username
(4.x) by default.
Expected Behavior
I think the list of HTTP methods the SwitchUserFilter
accepts should be configurable, and limited to POST
by default, to let the CsrfFilter
do its job.
Version
All, up to 4.2.1.
akuznetsov-gridgain and typekpb
Metadata
Metadata
Assignees
Labels
in: webAn issue in web modules (web, webmvc)An issue in web modules (web, webmvc)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: breaks-passivityA change that breaks passivity with the previous releaseA change that breaks passivity with the previous releasetype: enhancementA general enhancementA general enhancement