Description
The phpinfo implementation in ext/standard/info.c in PHP before 5.4.30 and 5.5.x before 5.5.14 does not ensure use of the string data type for the PHP_AUTH_PW, PHP_AUTH_TYPE, PHP_AUTH_USER, and PHP_SELF variables, which might allow context-dependent attackers to obtain sensitive information from process memory by using the integer data type with crafted values, related to a "type confusion" vulnerability, as demonstrated by reading a private SSL key in an Apache HTTP Server web-hosting environment with mod_ssl and a PHP 5.3.x mod_php.
Remediation
References
Related Vulnerabilities
Grafana Authorization Bypass Through User-Controlled Key Vulnerability (CVE-2024-10452)
WordPress Plugin Private Only Multiple Vulnerabilities (3.5.1)
Oracle Application Server CVE-2009-0989 Vulnerability (CVE-2009-0989)
PHP Out-of-bounds Write Vulnerability (CVE-2021-21704)
Ruby on Rails Improper Access Control Vulnerability (CVE-2016-6317)