Так как Symfony 7.4.0, FrameworkBundle выбирает рендер ошибки из режима выполнения приложения, который исходит от APP_RUNTIME_MODE env var. Когда эта переменная не установлена, cli, phpdbg и встраивают SAPIs по умолчанию в режим CLI, и ошибки отображаются с помощью CliErrorRenderer. Этот рендерер удаляет все исключения, и он делал это даже когда отладка была отключена.
Рабочие HTTP, которые работают под CLI SAPI и не устанавливают APP_RUNTIME_MODE, затем отправляют эти дампы в качестве ответов на ошибки в производстве. Они содержат сообщения, пути к файлам и следы исключений. Некоторые исключения ссылаются на запрос, например, ошибки отказа в доступе к правилам access_control.
Затем их дамп содержит параметры сервера со всеми переменными среды приложения. This affects, for example, the RoadRunner, Swoole and ReactPHP runners of php-runtime, and baldinof/roadrunner-bundle before 3.2.4. Рабочий режим FrankenPHP устанавливает переменную и не затрагивается.
Рендерер CLI теперь используется только в режиме отладки.
Показать оригинальное описание (EN)
Since Symfony 7.4.0, FrameworkBundle chooses the error renderer from the runtime mode of the application, which comes from the APP_RUNTIME_MODE env var. When this variable isn't set, the cli, phpdbg and embed SAPIs default to the CLI mode, and errors are rendered with CliErrorRenderer. This renderer dumps the whole exception, and it did so even when debug was off. HTTP workers that run under the CLI SAPI and don't set APP_RUNTIME_MODE then sent these dumps as error responses in production. They contain the messages, file paths and traces of the exceptions. Some exceptions reference the request, like the access denied errors of access_control rules. Their dump then contains the server parameters, with all the environment variables of the application. This affects, for example, the RoadRunner, Swoole and ReactPHP runners of php-runtime, and baldinof/roadrunner-bundle before 3.2.4. The worker mode of FrankenPHP sets the variable and isn't affected. The CLI renderer is now used only in debug mode.
Характеристики атаки
Последствия
Строка CVSS v4.0