Skip to content

Trusts addresses from the client provided X-Forwarded-For header #45

Open

Description

@Gunni

Arrive at a page blocked using ipfilter.

Spoof the X-Forwarded-For header with a permitted IP.

Refresh.

Access granted...

Activity

  1. Gunni commented on Jul 11, 2019

    @Gunni
    Author

    Just discovered the strict keyword, not documented on https://caddyserver.com/docs/http.ipfilter

    This behaviour is a bad default.

    Suggestion: default to strict but allow the admin to provide an array of trusted proxy IPs where you can trust this header.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions