В Foreman была обнаружена ошибка. Уязвимости OS существуют в задачах Foreman-Rake db:dump и db:import_dump. Приложение не может должным образом дезинфицировать пользовательский ввод в параметр назначения (во время резервного копирования) и параметр файла (во время импорта) перед передачей их в систему Ruby ().
Злоумышленник с разрешениями на выполнение фореман-рейка (например, через ограниченную конфигурацию sudo) может добавлять команды вредоносной оболочки к предоставленным файлам.
Показать оригинальное описание (EN)
A flaw was found in Foreman. OS command injection vulnerabilities exist in the foreman-rake db:dump and db:import_dump tasks. The application fails to properly sanitize user-supplied input in the destination parameter (during backups) and the file parameter (during imports) before passing them to a Ruby system() call for execution. An attacker with permissions to execute foreman-rake (e.g., via a restricted sudo configuration) can append malicious shell commands to the provided file paths.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 11
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Redhat Satellite
cpe:2.3:a:redhat:satellite:6.0:*:*:*:*:*:*:*
|
— | — |
|
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:-:*:*:*:*:*:*:*
|
— | — |
|
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:*:*:*:*:*:*:*
|
— | — |