Skip to content

Validation should happen after security checks  #664

@danielo515

Description

@danielo515

Hello.
I noticed that validation always happens bo matter what. Then the security is checked and if security rails the request is rejected.
This opens a attack vector because request validation is costly compared to checking auth (specially if it is in cookies or JWT).
I tried changing the order of definition, but that makes no difference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions