PHP advisory: mixed-case HTTPS and FTPS URLs can expose data in plaintext

nreece 13 points 2 comments November 20, 2026
github.com · View on Hacker News

Discussion Highlights (2 comments)

ChrisArchitect

Related: PHP 8.5.13 https://news.ycombinator.com/item?id=50560334

Natfan

> PHP's HTTP and FTP stream wrappers can send data without encryption when an HTTPS or FTPS URL has an uppercase S in its scheme, for example HTTPS://, httpS:// or FTPS://. so, not just mixed case? most URIs probably wouldn't be mixed case, but i could see a legacy use-case where URIs are converted into uppercase (for example, to save space)

Semantic search powered by Rivestack pgvector
3,874 stories · 35,194 chunks indexed