- Laravel Version: 7.14.1
- PHP Version: 7.4
Description:
It's possible to cause a Illuminate\Contracts\Encryption\DecryptException: The payload is invalid. exception to get thrown, by passing a X-XSRF-TOKEN with invalid data.
This gets logged in the error.log.
Steps To Reproduce:
- Install fresh Laravel project
- Create a routes which accepts a post request
- Send a post request with header
X-XSRF-TOKEN using invalid data. For example "INVALID_DATA"