Ember — терминальная панель реального времени для серверов Caddy с поддержкой FrankenPHP. До 1.4.2 интерактивные строки TUI проходят Caddy поля журнала доступа, в частности запрос URI, через fitCellLeft рендер-помощник без нейтрализующих терминальных побегов или управляющих последовательностей. Непроверенный удаленный клиент может разместить байты управления ANSI, OSC или CSI в обычном целевом запросе HTTP.
Caddy JSON-устраняет эти байты, ParseLogLine декодирует их обратно в необработанные элементы управления, а форматы соединяют их в View() выход, достигающий os.Stdout. When the operator views the default `Logs` tab, the terminal interprets these sequences, allowing monitoring-dashboard spoofing, clipboard hijacking through `OSC 52`, and window-title spoofing through `OSC 0/2`. Это работает даже с слушателем журнала только с обратной связью, потому что вход поступает через обычные журналы доступа Caddy.
Certificates и Routes разделяют вторичные ненейтрализованные поглотители рендеринга. Режимы --json, --once и демон --expose не затрагиваются, поскольку они не отображают интерактивный терминал. Последствия зависят от эмулятора терминала и обычно требуют дополнительных действий оператора для эскалации; это не выполнение удаленного кода общего назначения.
Эта проблема исправлена в версии 1.4.2.
Показать оригинальное описание (EN)
Ember is a real-time terminal dashboard for Caddy servers with FrankenPHP support. Prior to 1.4.2, interactive TUI row formatters pass Caddy access-log fields, particularly the request URI, through the `fitCellLeft` render helper without neutralizing terminal escape or control sequences. An unauthenticated remote client can place ANSI, OSC, or CSI control bytes in an ordinary HTTP request target. Caddy JSON-escapes those bytes, `ParseLogLine` decodes them back into raw controls, and the formatters concatenate them into `View()` output reaching `os.Stdout`. When the operator views the default `Logs` tab, the terminal interprets these sequences, allowing monitoring-dashboard spoofing, clipboard hijacking through `OSC 52`, and window-title spoofing through `OSC 0/2`. This works even with a loopback-only log listener because the input arrives through normal Caddy access logs. `Certificates` and `Routes` share secondary unneutralized render sinks. The `--json`, `--once`, and daemon `--expose` modes are unaffected because they do not render an interactive terminal. Consequences depend on the terminal emulator and usually require further operator action to escalate; this is not general-purpose remote code execution. This issue is fixed in version 1.4.2.
Характеристики атаки
Последствия
Строка CVSS v3.1