IT之家 · IT业界T2·78 pts
- Stream wrappers match schemes case-insensitively but TLS activation only checks a lowercase 's' at a fixed position, so mixed-case schemes bypass encryption
- The flaw also triggers via automatic HTTP redirects, not just directly supplied URLs, leaking POST bodies and auth data over plaintext
- Fixed in PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0; PHP 8.1 and earlier are end-of-life and will not receive patches
- Mitigation: lowercase scheme names before passing URLs to stream functions and normalize redirect targets