🇰🇷 한글 설명
ClearOS 7.9의 Log Viewer 구성 요소에서 OS 명령 주입 취약점이 발견되었습니다. 인증된 공격자가 필터 매개변수에 검증되지 않은 입력을 전송하여 File.php 내 셸 명령에 임의의 명령을 실행할 수 있습니다. 특히 webconfig 사용자가 NOPASSWD sudo 권한을 가지고 있어 즉시 루트 권한으로 권한 상승이 가능합니다.
💡 쉬운 설명
로그를 검색하는 기능에 악성 명령어를 숨겨서 입력하면 시스템이 이를 실행해버리는 문제입니다. 공격자가 이 기능을 이용하면 관리자 권한을 탈취하여 컴퓨터 전체를 제어할 수 있습니다.
🇺🇸 원문 (English)
ClearOS 7.9 contains an OS command injection vulnerability in the Log Viewer component that allows authenticated attackers to execute arbitrary commands by submitting unsanitized input through the filter parameter, which is interpolated directly into a shell command in File.php. Attackers can inject command substitution payloads into the filter parameter to execute arbitrary commands as the webconfig user, and due to extensive NOPASSWD sudo privileges granted to that user by default, immediately escalate to root.
⚔️ 공격 벡터
인증된 사용자가 Log Viewer의 filter 매개변수에 명령 치환 페이로드를 삽입하여 공격
🛡️ 대응 방법
해당 취약점이 해결된 보안 패치를 적용하거나, webconfig 사용자의 sudo 권한 설정을 검토하고 제한해야 합니다.
🔧 검증 코드
명령어 결과에서 filter 매개변수가 셸 명령에 직접 포함되어 처리되는 코드가 발견되면 취약한 상태입니다.
grep -r "File.php" /var/www/html/ | xargs grep "filter"