🇰🇷 한글 설명
sudo 1.6.8 ~ 1.7.2p5에서 현재 작업 디렉토리에 sudoers 파일의 의사명령(sudoedit 등)과 동일한 이름의 파일이 있고 PATH에 '.'이 포함되어 있으면 로컬 사용자가 임의의 명령을 관리자 권한으로 실행할 수 있는 경로 삽입 취약점입니다. CVE-2010-0426과는 다른 취약점이며 sudoedit을 통해 악용될 수 있습니다.
💡 쉬운 설명
현재 폴더에 악의적인 파일을 두고 sudo 명령을 실행하면 관리자 권한으로 그 파일이 실행됩니다. PATH 설정에 현재 폴더('.')가 포함되어 있을 때 발생하는 문제입니다.
🇺🇸 원문 (English)
The command matching functionality in sudo 1.6.8 through 1.7.2p5 does not properly handle when a file in the current working directory has the same name as a pseudo-command in the sudoers file and the PATH contains an entry for ".", which allows local users to execute arbitrary commands via a Trojan horse executable, as demonstrated using sudoedit, a different vulnerability than CVE-2010-0426.
📍 영향받는 시스템
sudo 1.6.8 ~ 1.7.2p5
⚔️ 공격 벡터
현재 디렉토리에 sudoedit 등 의사명령과 동일한 이름의 트로이목마 실행 파일을 생성하고 sudo 명령 실행
🛡️ 대응 방법
sudo를 최신 버전으로 업데이트하거나 PATH에서 '.' 항목 제거
🔧 검증 코드
출력된 sudo 버전이 1.7.2p6 이상인지 확인. 1.7.2p5 이하면 취약.
sudo -V 2>/dev/null | grep -i 'version' | head -1