🇰🇷 한글 설명
NAS4Free 9.1.0.1.804 이전 버전에서 원격 인증된 사용자가 exec.php를 통해 임의의 PHP 코드를 실행할 수 있는 취약점입니다. 'Advanced | Execute Command' 기능으로 웹 인터페이스에서 시스템 명령어를 직접 실행할 수 있으며, 개발자의 의도된 기능이지만 접근 제어가 부족할 경우 악용 가능합니다.
💡 쉬운 설명
NAS4Free 관리 페이지의 exec.php에서 명령 실행 기능이 인증된 사용자에게 노출되어 있습니다. 약한 인증이나 권한 상승으로 접근하면 서버에서 임의의 명령을 실행할 수 있습니다.
🇺🇸 원문 (English)
NAS4Free 9.1.0.1.804 and earlier allows remote authenticated users to execute arbitrary PHP code via a request to exec.php, aka the "Advanced | Execute Command" feature. NOTE: this issue might not be a vulnerability, since it appears to be part of legitimate, intentionally-exposed functionality by the developer and is allowed within the intended security policy.
📍 영향받는 시스템
NAS4Free 9.1.0.1.804 이전 버전
⚔️ 공격 벡터
HTTP POST/GET 요청으로 /exec.php 엔드포인트에 명령어 파라미터 전송하여 PHP 코드 또는 시스템 명령 실행
🛡️ 대응 방법
NAS4Free 최신 버전으로 업그레이드, exec.php 접근 제한 또는 비활성화, 강력한 인증 및 접근 제어 구현
🔧 검증 코드
HTTP 200/302 응답이면 exec.php 접근 가능(취약), 404/403 응답이면 접근 불가(안전)
curl -s -I http://target-ip/exec.php 2>/dev/null | grep -E '^HTTP' | head -1