🇰🇷 한글 설명
Red Hat Ansible Automation Platform의 automation-controller에서 프로젝트 scm_url 필드에 대한 검증 미흡으로 인해 발생하는 취약점입니다. 공격자가 URL 시작 부분에 대시(-)를 포함한 특수 값을 입력하면 git 명령어가 이를 옵션으로 오인하여 임의의 명령어를 실행할 수 있습니다. 이를 통해 제어 평면 태스크 포드에서 명령을 실행하고 클러스터 내에서 측면 이동이 가능합니다.
💡 쉬운 설명
프로젝트 주소를 입력하는 칸에 악성 명령어를 섞어 넣으면 시스템이 이를 주소가 아닌 실행 명령으로 착각하여 실행하는 문제입니다. 이를 통해 해커가 서버의 권한을 탈취하거나 다른 시스템으로 침투할 수 있습니다.
🇺🇸 원문 (English)
A flaw was found in Red Hat Ansible Automation Platform's automation-
controller. The Project scm_url field is not validated against values that
begin with a dash and is stored and passed verbatim to the git SCM module.
Because the module runs git ls-remote with the URL as a positional argument and
without a "--" separator, a git project URL such as "--upload-pack=<command>:x"
is interpreted by git as the --upload-pack option and executed via a shell. A
user with permission to create or modify a project in a single organization can
thereby execute arbitrary commands on the control-plane task pod, with output
reflected through the project update stdout endpoint, leading to cross-tenant
compromise and in-cluster lateral movement
📍 영향받는 시스템
Red Hat Ansible Automation Platform (automation-controller)
⚔️ 공격 벡터
프로젝트 생성 또는 수정 시 scm_url 필드에 '--upload-pack' 옵션이 포함된 악성 Git URL 주입
🛡️ 대응 방법
Red Hat에서 제공하는 최신 보안 패치를 적용하고 scm_url 입력값에 대한 검증 로직을 강화해야 함
🔧 검증 코드
설치된 Ansible Automation Platform의 버전을 확인하여 취약점이 해결된 패치 버전인지 확인합니다.
ansible-automation-platform --version 2>/dev/null || rpm -qa | grep -i 'ansible-automation-platform'