В rubygem-foreman_remote_execution была обнаружена ошибка. Уязвимость существует в Red Hat Satellite API (/api/v2/job_invocations. Когда шаблон задания имеет свойство effective_user, помеченное как overridable: true, приложение не может должным образом дезинфицировать вход effective_user, предоставленный во время запроса API.
Эксплуатация не опирается на содержание или логику самого шаблона Job; скорее, инъекция происходит во время создания среды выполнения заданий сервером Satellite. Злоумышленник, имеющий разрешения на выполнение шаблонов заданий, может вводить в этот параметр произвольные команды оболочки, которые исполняются на целевой инфраструктуре с привилегиями пользователя выполнения.
Показать оригинальное описание (EN)
A flaw was found in rubygem-foreman_remote_execution. A command injection vulnerability exists in the Red Hat Satellite API (/api/v2/job_invocations). When a job template has the effective_user property marked as overridable: true, the application fails to properly sanitize the effective_user input provided during the API request. The exploitation does not rely on the content or logic of the Job Template/playbook itself; rather, the injection occurs during the instantiation of the job execution environment by the Satellite server. An attacker with permissions to execute job templates can inject arbitrary shell commands into this parameter, which are executed on the target infrastructure with the privileges of the execution user.
Характеристики атаки
Последствия
Строка CVSS v3.1