🔍 CVE-2026-33145

6.3
CVSS Score
MEDIUM
2026-04-17
2026-10-26 22:10
✅ 완료

🇰🇷 한글 설명

xrdp는 오픈소스 RDP 서버입니다. 0.10.5 이하 버전에서는 xrdp-sesman의 AlternateShell 매개변수를 안전하지 않게 처리하여, 인증된 원격 사용자가 서버에서 임의의 명령을 실행할 수 있습니다. AllowAlternateShell 설정이 명시적으로 지정되지 않으면 기본적으로 활성화되어 있으며, 클라이언트가 전달한 값을 /bin/sh -c로 검증 없이 실행합니다. 이 문제는 0.10.6 버전에서 수정되었습니다.

💡 쉬운 설명

RDP로 로그인한 사용자가 접속 과정에서 서버에 원하는 명령을 실행할 수 있는 취약점입니다. 로그인 권한이 있는 사용자라면 서버를 더 장악할 수 있습니다.

🇺🇸 원문 (English)

xrdp is an open source RDP server. Versions through 0.10.5 allow an authenticated remote user to execute arbitrary commands on the server due to unsafe handling of the AlternateShell parameter in xrdp-sesman. When the AllowAlternateShell setting is enabled (which is the default when not explicitly configured), xrdp accepts a client-supplied AlternateShell value and executes it via /bin/sh -c during session initialization. This results in shell-interpreted execution of unsanitized, user-controlled input. This behavior effectively provides a scriptable remote command execution primitive over RDP within the security context of the authenticated user, occurring prior to normal window manager startup. This can bypass expected session initialization flows and operational assumptions that restrict execution to interactive desktop environments. This issue has been fixed in version 0.10.6.

📍 영향받는 시스템

xrdp 0.10.5 이하 버전 (AllowAlternateShell 기본 활성화 환경)

⚔️ 공격 벡터

인증된 RDP 사용자가 AlternateShell 값에 셸 명령을 삽입하여 세션 초기화 중 임의 명령 실행

🛡️ 대응 방법

xrdp를 0.10.6 이상으로 업그레이드하거나 xrdp.ini/sesman.ini에서 AllowAlternateShell=false로 설정

🔧 검증 코드

출력된 버전이 0.10.6 미만이면 취약하며, 0.10.6 이상이면 패치된 것입니다. 명령 결과가 없으면 xrdp가 설치되어 있지 않은 것입니다.

Shell / Script
dpkg -l xrdp 2>/dev/null | grep -E '^ii' | awk '{print $3}'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

💻 영향받는 소프트웨어

Magento Open Source