🇰🇷 한글 설명
Canonical의 ubuntu-pro-client에서 입력값 검증 미흡으로 인한 인젝션 취약점이 발견되었습니다. 공격자가 계약 서버의 응답을 조작하여 APT 소스 리스트에 악성 설정 라인을 삽입하고, 이를 통해 루트 권한으로 임의의 패키지를 설치하여 시스템을 장악할 수 있습니다.
💡 쉬운 설명
우분투 시스템의 업데이트 설정 파일이 조작되어 해커가 만든 가짜 프로그램을 몰래 설치할 수 있는 보안 구멍입니다. 이 공격이 성공하면 해커가 컴퓨터의 모든 권한을 가질 수 있어 매우 위험합니다.
🇺🇸 원문 (English)
An input validation and injection vulnerability exists in Canonical ubuntu-pro-client (formerly ubuntu-advantage-tools). The client constructs APT source files (such as /etc/apt/sources.list.d/ubuntu-.list or their DEB822 equivalents) using data received directly from the contract server response via the directives.suites[] and directives.aptURL fields. Because the client utilizes Python's str.format() to write these files without performing escaping, validation, or newline character filtering, a malicious or tampered contract response containing embedded newline (\n) characters can successfully inject arbitrary, attacker-controlled deb configuration lines into root-owned APT sources. When combined with the unvalidated additionalPackages[] field—which is passed positionally into a root-executed apt-get install command—an attacker capable of spoofing or manipulating the contract response (e.g., via a compromised internal infrastructure, an intercepted connection utilizing a trusted CA, or local logical bugs) can force the client to fetch and install malicious packages. This ultimately leads to arbitrary code execution with root privileges on the affected system. This component is preinstalled on supported Ubuntu Server releases and auto-attaches by default on cloud provider Ubuntu Pro images.
📍 영향받는 시스템
Canonical ubuntu-pro-client (구 ubuntu-advantage-tools)가 설치된 Ubuntu Server 및 Ubuntu Pro 이미지
⚔️ 공격 벡터
조작된 계약 서버 응답을 통한 APT 소스 리스트 인젝션 및 악성 패키지 강제 설치
🛡️ 대응 방법
해당 취약점이 해결된 최신 버전의 ubuntu-pro-client로 업데이트를 수행하십시오.
🔧 검증 코드
설치된 패키지 버전을 확인하여 보안 패치가 적용된 최신 버전인지 제조사의 권고 사항과 비교하십시오.
dpkg -l | grep ubuntu-pro-client