🇰🇷 한글 설명
boneIO Black의 boneio/webui/routes/timezone_sudoers.py 내 create_timedatectl_sudoers_file() 함수에 TOCTOU 레이스 컨디션이 존재합니다. 함수는 예측 가능한 임시 파일에 sudoers 규칙을 기록하고 검증한 뒤 root 권한으로 설치하므로, 로컬 공격자가 검증과 설치 사이의 경합 구간을 노리거나 심볼릭 링크 공격을 수행해 임의의 sudoers 규칙을 주입할 수 있습니다. 이 문제는 1.6.0 버전에서 수정되었습니다.
💡 쉬운 설명
시스템 설정을 저장하는 과정에서 임시 파일의 내용이 검사와 적용 사이에 바뀔 수 있는 취약점입니다. 공격자가 이 틈을 이용하면 관리자 권한을 얻을 수 있습니다.
🇺🇸 원문 (English)
boneIO Black contains a TOCTOU race condition in the create_timedatectl_sudoers_file() function in boneio/webui/routes/timezone_sudoers.py. The function writes sudoers rules to a predictable temporary file, validates them, then installs them with root privileges. A local attacker can exploit the race window between validation and installation to substitute malicious content, or use the predictable filename for symlink attacks, resulting in arbitrary sudoers rule injection and local privilege escalation to root.
This issue was fixed in version 1.6.0.
📍 영향받는 시스템
boneIO Black 1.6.0 미만 버전
⚔️ 공격 벡터
로컬 공격자가 예측 가능한 임시 파일명을 이용해 검증과 설치 사이에 악성 sudoers 내용을 바꿔치기하거나 심볼릭 링크 공격을 수행
🛡️ 대응 방법
boneIO Black을 1.6.0 이상으로 업데이트
🔧 검증 코드
출력된 Version 값이 1.6.0 이상이면 패치된 버전이며, 그보다 낮으면 업데이트가 필요합니다.
pip show boneio 2>/dev/null | grep -i version