🇰🇷 한글 설명
Nacos 1.4.1 미만 버전에서 ConfigOpsController의 /derby 엔드포인트가 인증 없이 접근 가능한 취약점이 발견되었습니다. 이 취약점을 이용하면 공격자가 내장 데이터베이스인 Derby를 조작하거나 데이터를 삭제할 수 있습니다. 다만, MySQL과 같은 외부 저장소를 사용하는 경우에는 영향을 받지 않습니다.
💡 쉬운 설명
Nacos라는 서비스 관리 도구에서 보안 설정이 누락된 통로가 발견되었습니다. 이 통로를 통해 해커가 데이터베이스에 저장된 정보를 마음대로 보거나 지울 수 있습니다.
🇺🇸 원문 (English)
Nacos is a platform designed for dynamic service discovery and configuration and service management. In Nacos before version 1.4.1, the ConfigOpsController lets the user perform management operations like querying the database or even wiping it out. While the /data/remove endpoint is properly protected with the @Secured annotation, the /derby endpoint is not protected and can be openly accessed by unauthenticated users. These endpoints are only valid when using embedded storage (derby DB) so this issue should not affect those installations using external storage (e.g. mysql)
📍 영향받는 시스템
Nacos version < 1.4.1 (embedded Derby DB 사용 시)
⚔️ 공격 벡터
인증되지 않은 사용자가 보호되지 않은 /derby 엔드포인트에 직접 접근하여 데이터베이스 조작
🛡️ 대응 방법
Nacos를 1.4.1 이상의 최신 버전으로 업데이트하거나 외부 데이터베이스(MySQL 등)를 사용하도록 설정
🔧 검증 코드
명령어 실행 결과 'Vulnerable'이 출력되면 해당 엔드포인트가 인증 없이 접근 가능하여 취약할 가능성이 높음을 의미합니다.
curl -s -I http://<target-ip>:<port>/nacos/config/derby | grep -q '200 OK' && echo 'Vulnerable' || echo 'Not Vulnerable'