Skip to content

User made error by sending invalid X-XSRF-TOKEN #33127

@andershagbard

Description

@andershagbard
  • 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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions