FreePBX - это веб-интерфейс с открытым исходным кодом (GUI), который управляет Asterisk. Prior to versions 16.0.45 and 17.0.24 of the FreePBX framework, an authenticated local privilege escalation exists in the deprecated FreePBX startup script `amportal`. В устаревшей утилите amportal поиск файла freepbx_engine происходит в каталогах /etc/asterisk/.
Как правило, они настраиваются FreePBX как записываемые пользователем **asterisk ** и любыми членами группы **asterisk **. Это означает, что член группы ** звездочка ** может добавить свой собственный freepbx_engine файл в /etc/asterisk/ и при выполнении amportal он будет выполнять этот файл с разрешениями root (даже если файл был создан и размещен не корневым пользователем). Версия 16.0.45 и 17.0.24 содержат исправление проблемы.
Существуют и другие стратегии смягчения последствий. Подтвердите, что только доверенные локальные пользователи системы OS являются членами группы asterisk. Ищите подозрительные файлы в каталоге /etc/asterisk/ (через Admin -> Config Edit в GUI или через CLI).
Double-check, что live_dangerously нет установлен (или не настроен, так как по умолчанию **нет**) в /etc/asterisk/asterisk.conf файл. Исключите любое небезопасное пользовательское использование приложений и функций Asterisk, которые потенциально могут манипулировать файловой системой, например, System (), FILE () и т. Д.
Показать оригинальное описание (EN)
FreePBX is an open-source web-based graphical user interface (GUI) that manages Asterisk. Prior to versions 16.0.45 and 17.0.24 of the FreePBX framework, an authenticated local privilege escalation exists in the deprecated FreePBX startup script `amportal`. In the deprecated `amportal` utility, the lookup for the `freepbx_engine` file occurs in `/etc/asterisk/` directories. Typically, these are configured by FreePBX as writable by the **asterisk** user and any members of the **asterisk** group. This means that a member of the **asterisk** group can add their own `freepbx_engine` file in `/etc/asterisk/` and upon `amportal` executing, it would exec that file with root permissions (even though the file was created and placed by a non-root user). Version 16.0.45 and 17.0.24 contain a fix for the issue. Other mitigation strategies are also available. Confirm only trusted local OS system users are members of the `asterisk` group. Look for suspicious files in the `/etc/asterisk/` directory (via Admin -> Config Edit in the GUI, or via CLI). Double-check that `live_dangerously = no` is set (or unconfigured, as the default is **no**) in `/etc/asterisk/asterisk.conf` file. Eliminate any unsafe custom use of Asterisk dial plan applications and functions that potentially can manipulate the file system, e.g., System(), FILE(), etc.
Характеристики атаки
Последствия
Строка CVSS v4.0
Тип уязвимости (CWE)
Уязвимые продукты 2
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Sangoma Freepbx
cpe:2.3:a:sangoma:freepbx:*:*:*:*:*:*:*:*
|
16.0
|
16.0.45
|
|
Sangoma Freepbx
cpe:2.3:a:sangoma:freepbx:*:*:*:*:*:*:*:*
|
17.0
|
17.0.24
|