🇰🇷 한글 설명
za-internet C-MOR Video Surveillance 5.2401 버전에서 부적절한 권한 관리로 인한 권한 상승 취약점이 발견되었습니다. 웹 인터페이스를 실행하는 www-data 사용자가 비밀번호 입력 없이 sudo를 통해 cp, chown, chmod 등의 명령어를 실행할 수 있으며, 이를 통해 sudoers 파일을 수정하여 루트 권한을 획득할 수 있습니다.
💡 쉬운 설명
웹사이트 관리용 계정이 원래는 할 수 없는 높은 수준의 명령어를 비밀번호 없이 실행할 수 있는 보안 결함입니다. 공격자가 이 허점을 이용하면 일반 사용자 권한에서 컴퓨터의 모든 권한을 가진 관리자(root)로 신분을 상승시킬 수 있습니다.
🇺🇸 원문 (English)
An issue was discovered in za-internet C-MOR Video Surveillance 5.2401. Due to improper privilege management concerning sudo privileges, C-MOR is vulnerable to a privilege escalation attack. The Linux user www-data running the C-MOR web interface can execute some OS commands as root via Sudo without having to enter the root password. These commands, for example, include cp, chown, and chmod, which enable an attacker to modify the system's sudoers file in order to execute all commands with root privileges. Thus, it is possible to escalate the limited privileges of the user www-data to root privileges.
📍 영향받는 시스템
za-internet C-MOR Video Surveillance 5.2401
⚔️ 공격 벡터
웹 인터페이스 권한(www-data)을 이용한 sudo 명령어 오용 및 sudoers 파일 변조
🛡️ 대응 방법
해당 소프트웨어의 보안 패치를 적용하거나 sudoers 설정에서 www-data 사용자의 불필요한 권한을 제거해야 합니다.
🔧 검증 코드
명령어 실행 결과에 cp, chown, chmod 등의 명령어가 나타나면 권한 상승 취약점이 존재하는 상태입니다.
sudo -l -U www-data 2>/dev/null | grep -E 'cp|chown|chmod'