Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.x] Catch DecryptException with invalid X-XSRF-TOKEN #35671

merged 1 commit into from Dec 20, 2020


Copy link

It fixes #33127.

For any POST, PUT, PATCH or DELETE request, anyone can change the X-XSRF-TOKEN value in the headers and cause a server error (500 response).

With this fix, if a user changes the value, the server will return a 419 – CSRF token mismatch response instead.

@taylorotwell taylorotwell merged commit 97958fb into laravel:6.x Dec 20, 2020
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants