🇰🇷 한글 설명
9Router 0.4.44 미만 버전의 unauthenticated POST /api/tunnel/tailscale-install 엔드포인트에서 OS 명령 주입 취약점이 발견되었습니다. 해당 경로는 인증 확인 과정을 거치지 않으며, 요청 본문의 sudoPassword 필드가 sudo 프로세스의 표준 입력으로 전달되어 임의의 명령을 실행할 수 있게 합니다.
💡 쉬운 설명
해커가 로그인 없이도 공유기 설정 페이지의 특정 기능을 이용해 공유기에 직접 명령을 내릴 수 있는 심각한 보안 결함입니다. 이를 통해 공격자는 공유기의 제어권을 완전히 탈취할 수 있습니다.
🇺🇸 원문 (English)
9Router before 0.4.44 contains an OS command injection vulnerability in the unauthenticated POST /api/tunnel/tailscale-install endpoint (this route is not covered by the dashboard middleware matcher, so no authorization check is applied). The sudoPassword field from the request body is written to the stdin of a 'sudo -S sh' child process. When sudo does not prompt for a password (the process runs as root, NOPASSWD is configured, or a recent sudo timestamp cache exists), the sudoPassword value is interpreted by sh as a shell command, allowing a remote unauthenticated attacker to execute arbitrary OS commands. Exploitation evidence was first observed by the Shadowserver Foundation on 2026-07-04 (UTC).
📍 영향받는 시스템
9Router version < 0.4.44
⚔️ 공격 벡터
인증되지 않은 원격 공격자가 특수하게 조작된 HTTP POST 요청을 통해 명령 주입
🛡️ 대응 방법
9Router를 최신 버전인 0.4.44 이상으로 즉시 업데이트하십시오.
🔧 검증 코드
해당 엔드포인트에 접근 시 인증 오류나 예상치 못한 응답이 발생하는지 확인하여 취약 여부를 점검합니다.
curl -s -X POST http://<TARGET_IP>/api/tunnel/tailscale-install | grep -i 'error'