🇰🇷 한글 설명
Nexus Repository 3의 DataStore 설정 API에서 HikariCP 연결 풀 속성에 대한 제한이 미흡하여 발생한 취약점입니다. nx-datastores-update 권한을 가진 사용자가 connectionInitSql 속성을 조작하여 데이터베이스에 임의의 SQL을 실행할 수 있으며, 기본 H2 데이터베이스 사용 시 Nexus 프로세스 권한으로 원격 코드 실행(RCE)이 가능합니다.
💡 쉬운 설명
Nexus 관리 권한을 가진 사람이 데이터베이스 설정 값을 악용하여 서버에 몰래 명령어를 실행할 수 있는 보안 구멍입니다. 특히 기본 데이터베이스를 사용할 경우 해커가 서버 전체를 장악할 위험이 있습니다.
🇺🇸 원문 (English)
Nexus Repository 3 did not sufficiently restrict which HikariCP connection-pool properties could be set through the DataStore configuration API. A user holding the nx-datastores-update permission could set the connectionInitSql property to execute arbitrary SQL against the configured database on every new connection. On the default H2 database backend, this could be leveraged to achieve remote code execution as the Nexus process user.
📍 영향받는 시스템
Nexus Repository 3 (nx-datastores-update 권한이 있는 사용자 환경)
⚔️ 공격 벡터
DataStore 설정 API를 통해 HikariCP의 connectionInitSql 속성에 악성 SQL 주입
🛡️ 대응 방법
Nexus Repository 3를 최신 보안 패치가 적용된 버전으로 업데이트하고, 사용자 권한 관리를 강화하십시오.
🔧 검증 코드
출력된 Nexus 버전이 해당 취약점이 해결된 패치 버전인지 확인하십시오.
curl -s http://<NEXUS_URL>/service/rest/v1/status | grep -E 'version'