🇰🇷 한글 설명
linuxfabrik-lib 및 Linuxfabrik Monitoring Plugins의 특정 버전에서 --test 인자가 파일 경로를 제한 없이 처리하여 임의의 파일을 읽을 수 있는 취약점이 발견되었습니다. 공격자가 권한이 있는 플러그인을 이용해 시스템 내 루트 권한으로 읽을 수 있는 민감한 파일 내용을 탈취할 수 있습니다.
💡 쉬운 설명
프로그램의 테스트 기능이 보안 검사 없이 컴퓨터 안의 파일을 마음대로 읽을 수 있는 허점이 있습니다. 이를 통해 해커가 관리자만 볼 수 있는 중요한 비밀 파일을 몰래 훔쳐볼 수 있습니다.
🇺🇸 원문 (English)
linuxfabrik-lib provides Python modules for database access, caching, shell execution, and API integrations, and Linuxfabrik Monitoring Plugins uses its shared testing helper across check plugins. Prior to linuxfabrik-lib 6.1.0 and Linuxfabrik Monitoring Plugins 7.0.0, lib.lftest.test() treated the first or second element of a --test CSV argument as a filesystem path and returned the file contents as simulated standard output or standard error without path confinement. The hidden but production-accessible --test argument was accepted by sudo-authorized plugins, so an attacker controlling the nagios or icinga account could use check-plugins/deb-updates/deb-updates with its default QUERY=1 to disclose every line of a root-readable file. Approximately 22 other plugins exposed filtered content or a root file existence and readability oracle through the same helper, while check-plugins/network-bonding/network-bonding and check-plugins/openstack-swift-stat/openstack-swift-stat had direct read paths that bypassed the helper. The library fix confines fixture reads to the invoking plugin's unit-test directory and refuses unsafe anchors, and the plugin fix routes the two bypasses through that helper. These issues are fixed in linuxfabrik-lib 6.1.0 and Linuxfabrik Monitoring Plugins 7.0.0.
📍 영향받는 시스템
linuxfabrik-lib < 6.1.0, Linuxfabrik Monitoring Plugins < 7.0.0
⚔️ 공격 벡터
sudo 권한을 가진 모니터링 플러그인의 --test 인자에 임의의 파일 경로를 입력하여 파일 내용 탈취
🛡️ 대응 방법
linuxfabrik-lib 6.1.0 및 Linuxfabrik Monitoring Plugins 7.0.0 이상 버전으로 업데이트
🔧 검증 코드
출력된 결과에서 설치된 패키지의 버전이 6.1.0 또는 7.0.0보다 낮은지 확인하십시오.
dpkg -l | grep -E 'linuxfabrik-lib|linuxfabrik-monitoring-plugins'