🇰🇷 한글 설명
systemd 247 미만 버전에서 특정 sudo 설정 시 로컬 권한 상승이 가능합니다. systemctl status 실행 시 터미널 크기가 작으면 less가 실행되는데, 이때 LESSSECURE 설정이 누락되어 less를 통해 다른 프로그램을 실행함으로써 루트 권한을 획득할 수 있습니다.
💡 쉬운 설명
관리자 권한으로 시스템 상태를 확인하는 과정에서 보안 설정이 빠져 있어, 공격자가 관리자 권한을 몰래 훔칠 수 있는 문제입니다. 화면이 작을 때 실행되는 도구를 이용해 시스템의 통제권을 빼앗을 수 있습니다.
🇺🇸 원문 (English)
systemd before 247 does not adequately block local privilege escalation for some Sudo configurations, e.g., plausible sudoers files in which the "systemctl status" command may be executed. Specifically, systemd does not set LESSSECURE to 1, and thus other programs may be launched from the less program. This presents a substantial security risk when running systemctl from Sudo, because less executes as root when the terminal size is too small to show the complete systemctl output.
📍 영향받는 시스템
systemd versions prior to 247
⚔️ 공격 벡터
Local Privilege Escalation (LPE) via sudo-enabled systemctl and less pager
🛡️ 대응 방법
systemd를 247 버전 이상으로 업데이트하거나 sudoers 설정에서 systemctl 실행 권한을 제한하십시오.
🔧 검증 코드
출력된 버전 숫자가 247보다 작으면 해당 취약점에 노출된 상태입니다.
systemctl --version | awk '{print $1}' | sed 's/systemd-//'