🇰🇷 한글 설명
UpSnap 5.4.0 미만 버전의 장치 관리 기능에서 OS 명령 주입 취약점이 발견되었습니다. ip 및 mac 필드에 사용되는 템플릿에 안전하지 않은 쉘 명령 보간이 존재하여, 인증된 사용자가 임의의 명령을 실행할 수 있는 원격 코드 실행(RCE)이 가능합니다.
💡 쉬운 설명
UpSnap이라는 프로그램의 설정 값에 악성 명령어를 몰래 끼워 넣어 서버를 마음대로 조종할 수 있는 보안 약점입니다. 장치를 수정할 권한이 있는 사용자가 이 취약점을 이용해 서버에 해로운 명령을 내릴 수 있습니다.
🇺🇸 원문 (English)
UpSnap is a wake on lan web app. Versions prior to 5.4.0 have an OS command injection vulnerability in the UpSnap’s device management functionality due to the presence of unsafe shell command template interpolation using the ip and the mac fields. User-controlled values can be inserted into the wake_cmd and shutdown_cmd templates and executed via /bin/sh -c (Linux) or cmd /C (Windows) without sanitization, resulting in an authenticated Remote Code Execution (RCE). A low-privileged user with permission to create or edit devices can execute arbitrary operating system commands on the UpSnap hosted server. Version 5.4.0 patches the issue.
📍 영향받는 시스템
UpSnap versions prior to 5.4.0
⚔️ 공격 벡터
장치 관리 기능의 ip 또는 mac 필드에 악성 쉘 명령어를 삽입하여 실행
🛡️ 대응 방법
UpSnap을 최신 버전인 5.4.0 이상으로 업데이트하십시오.
🔧 검증 코드
명령어 결과에 5.4.0 미만의 버전 번호가 나타나면 취약한 버전이 설치된 것입니다.
curl -s http://localhost:PORT/api/version | grep -E '5\.[0-4]\.'