PHP bug sent TLS-protected data in plaintext if you capitalized the S in https://

matthew_d_green · x · 2026-11-20

A severe PHP vulnerability: protocol handlers compared the URL scheme case-sensitively, so filegetcontents('HTTPS://…') skipped TLS entirely and transmitted tokens, POST bodies, and FTPS credentials in plaintext. The old code hardcoded a check that the 5th scheme character was a lowercase 's'. FTPS logins and redirects to uppercase URLs were also affected. Fixed in PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0 by switching to case-insensitive comparison — upgrading is the only mitigation.

Original post →

More from Safety

Safety channel →