Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Middleware verify_header method runs even for 404 Not Found routes #15

Description

@ermiyaeskandary

In my verify_header route, I may be making relatively costly DB calls, HTTP calls etc.

The middleware still runs for 404 requests, resulting in an indirect Denial of Service attack being possible against the remote resource.

It should not run when there are requests that would result in a 404.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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