CVE-2024-25625: Symfony Implicit Host Out Of Band Url

A URL is being generated in a function related to authentication, invitations, or password tokens without first explicitly setting a trusted host in the router context. This could lead to Host Header Injection. If this URL is sent to a user out-of-band (e.g., via email), an attacker could provide a malicious Host header and spoof the domain, leading to phish

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0PHP
greprules fetch cve-2024-25625-symfony-implicit-host-out-of-band-url --engine opengrep

Description

A URL is being generated in a function related to authentication, invitations, or password tokens without first explicitly setting a trusted host in the router context. This could lead to Host Header Injection. If this URL is sent to a user out-of-band (e.g., via email), an attacker could provide a malicious Host header and spoof the domain, leading to phish