PHP Uppercase S TLS Bug
Oh boy ... PHP sent clear text data when you used uppercased S in httpS:// in a protocol handler 🙈 file_get_contents('HTTPS://...') skipped TLS: tokens, POST bodies and FTPS logins went out unencrypted! Fixed today in 8.2.36, 8.3.37, 8.4.28, 8.5.13 & 8.6.0. <?php // PHP 8.5.4, ext/standard/http_fopen_wrapper.c // use_ssl = (ZSTR_LEN(resource->scheme) > 4) // && ZSTR_VAL(resource->scheme)[4] == 's'; $ctx = stream_context_create(['http' => 'header' => 'Authorization: Bearer secret', ]); file_get_contents('https://api.example.com/', false, $ctx); // TLS file_get_contents('HTTPS://api.example.com/', false, $ctx); // plaintext! file_get_contents('HTTPS://api.example.com/', false, $ctx); // plaintext! // Same for FTPS:// logins, and for redirects to an uppercase URL. // Fixed in 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0: // use_ssl = zend_string_equals_literal_ci(resource->scheme, "https");
Пост в стиле скриншота X сообщает, что PHP отправлял данные в открытом виде, если в URL протокола буква S была написана заглавной. Шутка в абсурдно долго незамеченной уязвимости: HTTPS и FTPS могли обходить TLS, раскрывая токены, POST-данные и логины. Это используют как реакцию на нелепые баги безопасности и технические провалы. EN: An X-style screenshot says that PHP sent data in plaintext when the S in a protocol URL was uppercase. The joke is that an absurdly long-undetected vulnerability let HTTPS and FTPS bypass TLS, exposing tokens, POST data, and logins. It can be used as a reaction to ridiculous security bugs and technical failures.
social media post / пост в соцсетиPHP code / код PHPcomputer screen / экран компьютераcode editor / редактор кодаbrowser-style window / окно в стиле браузераtext lines / строки текстаsecurity vulnerability / уязвимость безопасностиHTTPS URL / URL HTTPSFTPS URL / URL FTPSencryption / шифрованиеTLS connection / TLS-соединениеauthorization header / заголовок авторизацииbearer token / токен Bearerkeyboard / клавиатураblack background / чёрный фон
- @gentoomemes / 22705 2026-11-19
- Type
- image
- Size
- 541×800 · 62.6 KiB
- Mood
- absurd, sarcastic
- Language
- en
- Added