🇰🇷 한글 설명
linuxfabrik-lib 및 Linuxfabrik Monitoring Plugins의 특정 버전에서 사용자 입력값이 포함된 명령어가 쉘 실행 함수로 전달될 때 명령 주입 취약점이 발생합니다. 공격자는 파이프(|) 문자를 사용하여 임의의 명령어를 실행할 수 있으며, 특히 sudo 권한이 있는 경우 루트 권한 탈취가 가능합니다.
💡 쉬운 설명
프로그램이 사용자가 입력한 값을 검증 없이 명령어로 실행하여, 해커가 몰래 다른 명령을 끼워 넣을 수 있는 보안 구멍이 발견되었습니다. 이를 통해 해커가 컴퓨터의 관리자 권한을 통째로 뺏을 수 있는 위험한 상태입니다.
🇺🇸 원문 (English)
linuxfabrik-lib provides Python modules for database access, caching, shell execution, and API integrations, and Linuxfabrik Monitoring Plugins uses those modules to run external monitoring commands. From the earliest affected releases until linuxfabrik-lib 5.0.0 and Linuxfabrik Monitoring Plugins 6.0.0, check plugins embedded user-controlled values in command strings passed to lib.shell.shell_exec(), which split strings at pipe characters and executed the resulting commands. In check-plugins/restic-check/restic-check, the --repo parameter could inject a pipe-delimited command into a constructed restic invocation, and sudo-authorized execution allowed a compromised nagios or icinga account to run that command as root. The shared library also accepted command strings and a shell parameter, while numerous plugins constructed external commands from attacker-influenced arguments. The fixes require argv lists, always use shell=False, remove pipe splitting, and reject option-like positional values through lib.shell.safe_cli_value(). These issues are fixed in linuxfabrik-lib 5.0.0 and Linuxfabrik Monitoring Plugins 6.0.0.
📍 영향받는 시스템
linuxfabrik-lib 5.0.0 미만 버전 및 Linuxfabrik Monitoring Plugins 6.0.0 미만 버전
⚔️ 공격 벡터
플러그인 파라미터(예: --repo)에 파이프(|) 문자를 포함한 악성 명령어를 주입하여 실행
🛡️ 대응 방법
linuxfabrik-lib 5.0.0 및 Linuxfabrik Monitoring Plugins 6.0.0 이상 버전으로 업데이트
🔧 검증 코드
출력된 버전이 5.0.0 미만이면 취약한 상태이며, 5.0.0 이상이면 안전합니다.
pip show linuxfabrik-lib | grep Version
📊 CVSS Vector String
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
💻 영향받는 소프트웨어
NVIDIA Cloud Gaming Guest Driver for Linux