В Foreman была обнаружена ошибка. Утилита переднего хвоста уязвима для командной инъекции OS из-за небезопасного использования команды eval. Сценарий берет аргументы, предоставленные пользователем, и включает их непосредственно в строку, которая затем выполняется eval для расширения путей файла.
Поскольку входные данные не дезинфицируются и не цитируются, локальный злоумышленник может вводить метасимволы оболочки (например, ;, &, ) для выполнения произвольных системных команд.
Показать оригинальное описание (EN)
A flaw was found in Foreman. The foreman-tail utility is vulnerable to OS command injection due to the unsafe use of the eval command. The script takes user-supplied arguments and incorporates them directly into a string that is then executed by eval to expand file paths. Because the input is not sanitized or quoted, a local attacker can inject shell metacharacters (e.g., ;, &, |) to execute arbitrary system commands.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 12
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Redhat Satellite
cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*
|
6.16
|
6.16.4
|
|
Redhat Enterprise_Linux
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
|
— | — |
|
Redhat Enterprise_Linux
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
|
— | — |
|
Redhat Satellite
cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*
|
6.17
|
6.17.12
|
|
Redhat Enterprise_Linux
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
|
— | — |
|
Redhat Satellite
cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*
|
6.19
|
6.19.5
|
|
Redhat Enterprise_Linux
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
|
— | — |
|
Theforeman Foreman
cpe:2.3:a:theforeman:foreman:*:*:*:*:*:*:*:*
|
1.5.0
|
<= 3.19.1
|
|
Theforeman Foreman
cpe:2.3:a:theforeman:foreman:5.0.0:*:*:*:*:*:*:*
|
— | — |
|
Redhat Satellite
cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*
|
6.18
|
6.18.10
|
|
Redhat Enterprise_Linux
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
|
— | — |
|
Redhat Satellite
cpe:2.3:a:redhat:satellite:6.0:*:*:*:*:*:*:*
|
— | — |