🇰🇷 한글 설명
Linuxfabrik Monitoring Plugins 7.0.0 미만 버전에서 logfile 플러그인이 지정된 경로 제한 없이 root 권한으로 파일을 열 수 있는 취약점이 발견되었습니다. 공격자가 --filename 인자에 /etc/shadow와 같은 민감한 경로를 입력하면 시스템의 중요 정보를 탈취할 수 있습니다.
💡 쉬운 설명
모니터링 프로그램이 로그 파일을 읽을 때, 정해진 폴더가 아닌 시스템의 중요한 비밀 파일까지 마음대로 읽을 수 있는 보안 구멍이 있습니다. 이를 통해 해커가 컴퓨터의 비밀번호 정보를 훔쳐갈 위험이 있습니다.
🇺🇸 원문 (English)
Linuxfabrik Monitoring Plugins provides monitoring plugins for Icinga, Nagios, and related systems. Prior to version 7.0.0, check-plugins/logfile/logfile accepted a free-form --filename path and opened it as root when invoked through the shipped nagios or icinga sudoers allowlist, without confining the resolved path to /var/log. An attacker who controls the monitoring account can select a root-readable file such as /etc/shadow and use --warning-regex . while leaving SUPPRESS_OUTPUT false, causing each nonempty line to be collected in warn_matches and returned through lib.base.oao(). The vulnerable flow passes the expanded scan_path directly to open(), and neither real-path containment nor an allowlist protects the sink. The same fix also confines mysql-logfile and openvpn-client-list paths, allows only documented log roots, and resolves symlinks and parent-directory traversal before checking containment. This issue is fixed in version 7.0.0.
📍 영향받는 시스템
Linuxfabrik Monitoring Plugins version < 7.0.0
⚔️ 공격 벡터
sudo 권한이 허용된 모니터링 계정을 통해 --filename 인자에 임의의 시스템 경로를 입력하여 민감한 파일을 읽음
🛡️ 대응 방법
Linuxfabrik Monitoring Plugins를 7.0.0 이상 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 패키지 버전이 7.0.0 미만이면 취약한 상태이며, 7.0.0 이상이면 안전합니다.
dpkg -l | grep -i 'linuxfabrik' || rpm -qa | grep -i 'linuxfabrik'