🇰🇷 한글 설명
sudo 1.3.5~1.7.10, 1.8.0~1.8.5 버전에서 tty_tickets 옵션 활성화 시 터미널 장치 검증이 부족하여, 로컬 sudo 권한자가 다른 터미널의 표준 입출력 파일 디스크립터를 통해 권한 탈취를 수행할 수 있는 취약점입니다.
💡 쉬운 설명
sudo를 사용할 권한이 있는 사용자가 다른 사람의 터미널에 연결하여 그 사람의 권한으로 명령어를 실행할 수 있습니다. 터미널 검증이 제대로 되지 않아서 발생합니다.
🇺🇸 원문 (English)
sudo 1.3.5 through 1.7.10 and 1.8.0 through 1.8.5, when the tty_tickets option is enabled, does not properly validate the controlling terminal device, which allows local users with sudo permissions to hijack the authorization of another terminal via vectors related to connecting to the standard input, output, and error file descriptors of another terminal. NOTE: this is one of three closely-related vulnerabilities that were originally assigned CVE-2013-1776, but they have been SPLIT because of different affected versions.
📍 영향받는 시스템
sudo 1.3.5-1.7.10, 1.8.0-1.8.5 버전 (tty_tickets 옵션 활성화 상태)
⚔️ 공격 벡터
로컬 공격자가 stdin/stdout/stderr 파일 디스크립터를 다른 터미널에 재연결하여 권한 탈취
🛡️ 대응 방법
sudo를 1.8.6 이상으로 업그레이드 또는 tty_tickets 옵션 비활성화
🔧 검증 코드
tty_tickets 옵션이 활성화되어 있거나 영향받는 버전의 sudo가 설치되어 있으면 취약함
sudo -l 2>/dev/null | grep -i tty_tickets || dpkg -l sudo 2>/dev/null | awk '{print $3}' | grep -E '^1\.[3-8]'