Vulnerability identifier: #VU47252
Vulnerability risk: Medium
CVSSv4.0: 2.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]
CVE-ID:
CWE-ID:
CWE-20
Exploitation vector: Network
Exploit availability: No
Vulnerable software:
PHP
Universal components / Libraries /
Scripting languages
Vendor: PHP Group
Description
The vulnerability allows a remote attacker to perform a spoofing attack.
The vulnerability exists in the way PHP parser handles cookies with percent character (e.g. '%'). A remote attacker can send a crafted HTTP request with a `__%48ost-` or `__%53ecure-` cookie that will be processed before other cookies sent in the same request. As a result, an attacker can set malicious `__Host-`
cookie on a subdomain and bypass origin restrictions, imposed by browsers.
Successful exploitation of the vulnerability may allow an attacker to perform a spoofing attack.
Mitigation
Install updates from vendor's website.
Vulnerable software versions
PHP: 7.2 - 7.2.33, 7.3 - 7.3.22, 7.4 - 7.4.10
External links
https://www.php.net/ChangeLog-7.php#7.4.11
https://bugs.php.net/bug.php?id=79699
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability.