🇰🇷 한글 설명
Rust로 작성된 sudo-rs 구현체에서 발생하는 취약점으로, 0.2.6 미만 버전의 경우 제한된 sudo 권한을 가진 사용자가 -U 플래그를 사용하여 다른 사용자의 sudo 권한을 열람할 수 있습니다. 이를 통해 공격자는 sudoers 파일의 내용을 파악하여 시스템 내 다른 사용자의 권한 정보를 수집하고 정밀한 공격을 시도할 수 있습니다.
💡 쉬운 설명
권한이 아주 조금만 있는 사용자가 다른 사람들은 어떤 명령어를 실행할 수 있는지 몰래 훔쳐볼 수 있는 문제입니다. 이를 통해 시스템의 보안 설정을 파악하여 더 큰 공격을 준비할 수 있습니다.
🇺🇸 원문 (English)
sudo-rs is a memory safe implementation of sudo and su written in Rust. Prior to version 0.2.6, users with limited sudo privileges (e.g. execution of a single command) can list sudo privileges of other users using the `-U` flag. This vulnerability allows users with limited sudo privileges to enumerate the sudoers file, revealing sensitive information about other users' permissions. Attackers can collect information that can be used to more targeted attacks. Systems where users either do not have sudo privileges or have the ability to run all commands as root through sudo (the default configuration on most systems) are not affected by this advisory. Version 0.2.6 fixes the vulnerability.
📍 영향받는 시스템
sudo-rs 0.2.6 미만 버전
⚔️ 공격 벡터
제한된 sudo 권한을 가진 사용자가 sudo 명령에 -U 옵션을 사용하여 권한 정보를 조회
🛡️ 대응 방법
sudo-rs를 0.2.6 버전 이상으로 업데이트
🔧 검증 코드
출력된 버전 번호가 0.2.6 미만인지 확인합니다.
cargo pkgid sudo-rs 2>/dev/null | grep -oE 'sudo-rs-[0-9]+\.[0-9]+\.[0-9]+' || echo 'Check installed version manually'