Skip to content

Narrow default NEXTCLOUD_TRUSTED_PROXIES to explicit proxy addresses #81

@stoertebeker

Description

@stoertebeker

Summary

The default NEXTCLOUD_TRUSTED_PROXIES value trusts entire private network ranges instead of only the actual reverse proxy addresses.

Evidence

  • .env.example:200 defaults to 127.0.0.1 ::1 10.0.0.0/8 fc00::/7.
  • configs/installer/nextcloud_setup_default.sh:128-135 applies this value directly to Nextcloud.

Risk

Any client reaching the service from those ranges can spoof forwarded-IP headers. That can affect logging, brute-force protection, and other proxy-aware security controls.

Suggested Remediation

  • Default to loopback only, or to an empty value that must be set explicitly.
  • Document that only the exact reverse proxy IPs or subnets should be trusted.

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