🇰🇷 한글 설명
Apport 2.20.4 이전 버전에서 Package와 SourcePackage 필드의 경로 트래버설 취약점으로, 공격자가 /usr/share/apport/package-hooks/ 디렉토리의 임의 Python 파일을 실행할 수 있습니다. 이를 통해 시스템에서 높은 권한으로 악성 코드 실행이 가능합니다.
💡 쉬운 설명
Apport는 프로그램 충돌 정보를 수집하는 시스템 도구입니다. 공격자가 특수한 문자 조합을 입력하여 임의의 프로그램 파일을 실행시킬 수 있는 보안 결함이 있습니다.
🇺🇸 원문 (English)
An issue was discovered in Apport before 2.20.4. There is a path traversal issue in the Apport crash file "Package" and "SourcePackage" fields. These fields are used to build a path to the package specific hook files in the /usr/share/apport/package-hooks/ directory. An attacker can exploit this path traversal to execute arbitrary Python files from the local system.
📍 영향받는 시스템
Ubuntu, Debian, Linux Mint 등 Apport < 2.20.4를 사용하는 Linux 배포판
⚔️ 공격 벡터
공격자가 Package/SourcePackage 필드에 경로 트래버설 문자(../)를 포함시켜 /usr/share/apport/package-hooks/ 디렉토리 밖의 Python 파일 실행
🛡️ 대응 방법
Apport를 버전 2.20.4 이상으로 업그레이드 (apt update && apt upgrade apport)
🔧 검증 코드
출력된 버전이 2.20.4 이상이면 패치됨, 미만이면 업그레이드 필요
dpkg -l apport 2>/dev/null | tail -1 | awk '{print $3}'