Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ineffective CSRF check for /webconfirm (#50102)
The WithAuthCookieAndCSRF checks only apply CSRF checks for state-changing (ie non-GET) requests. Since /webconfirm is always a GET request, the previous code gave the impression that CSRF tokens were validated which is not the case. No behavior change here - just being more explicit about what is being checked. There is no exploit due to not checking CSRF here due to the strict session verification performed on the confirmation token.
- Loading branch information