8000 [HttpKernel] Invalid REMOTE_ADDR in inline subrequest when configuring trusted proxy with subnet · Issue #28000 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[HttpKernel] Invalid REMOTE_ADDR in inline subrequest when configuring trusted proxy with subnet #28000
Closed
@zluiten

Description

@zluiten

Symfony version(s) affected
>=2.8.42
Introduced by 18f55fe

Description
When trusted proxies are configured including a subnet a subrequest initiated by the InlineFragmentRenderer will contain an invalid REMOTE_ADDR server variable.

How to reproduce

  • Add a trusted proxy with subnet to the application, like 127.0.0.1/24.
  • Initiate a sub request using the InlineFragmentRenderer

Possible Solution
Inspect the trusted proxy for the '/' character and make sure only the first part is used.

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0