🇰🇷 한글 설명
Nagios XI 5.6.6 미만 버전에서 nagios 사용자로 서버에 접속하거나 웹 인터페이스를 통해 관리자 권한을 가진 경우 원격 명령 실행이 가능합니다. getprofile.sh 스크립트가 비밀번호 없이 sudo를 통해 실행되는 과정에서, nagios 사용자가 소유한 check_plugin 파일을 변조하여 루트 권한을 탈취할 수 있는 취약점입니다.
💡 쉬운 설명
관리자 권한을 가진 사용자가 시스템의 특정 파일을 몰래 바꿔치기하여 컴퓨터의 모든 권한을 장악할 수 있는 문제입니다. 이를 통해 해커는 서버를 완전히 통제할 수 있게 됩니다.
🇺🇸 원문 (English)
Nagios XI before 5.6.6 allows remote command execution as root. The exploit requires access to the server as the nagios user, or access as the admin user via the web interface. The getprofile.sh script, invoked by downloading a system profile (profile.php?cmd=download), is executed as root via a passwordless sudo entry; the script executes check_plugin, which is owned by the nagios user. A user logged into Nagios XI with permissions to modify plugins, or the nagios user on the server, can modify the check_plugin executable and insert malicious commands to execute as root.
📍 영향받는 시스템
Nagios XI versions before 5.6.6
⚔️ 공격 벡터
nagios 사용자 권한 또는 웹 관리자 권한을 이용한 check_plugin 파일 변조 및 sudo 실행 유도
🛡️ 대응 방법
Nagios XI를 최신 버전(5.6.6 이상)으로 업데이트하십시오.
🔧 검증 코드
출력된 Nagios XI의 버전을 확인하여 5.6.6 미만인지 확인합니다.
rpm -q nagiosxi || dpkg -l | grep nagios | awk '{print $2, $3}'