🇰🇷 한글 설명
free5GC의 SMF 구성요소가 OAuth2/Bearer-Token 인증 없이 UPI 관리 API를 노출하여, 네트워크 공격자가 인증 헤더 없이 UPI 엔드포인트에 직접 접근 가능합니다. 이를 통해 UP-노드 링크 정보의 읽기, 쓰기, 삭제 작업이 모두 가능합니다.
💡 쉬운 설명
5G 네트워크를 관리하는 free5GC 소프트웨어의 일부 기능이 잠금장치 없이 열려있어서, 누구나 비밀 데이터를 보고 수정할 수 있습니다. 이 문제는 4.2.2 버전에서 수정되었습니다.
🇺🇸 원문 (English)
free5GC is an open-source implementation of the 5G core network. Prior to 4.2.2, free5GC's SMF mounts the UPI management route group without OAuth2/bearer-token authorization middleware. A network attacker who can reach SMF on the SBI can hit UPI endpoints with no Authorization header at all, and the requests reach the SMF business handlers. In the running Docker lab this was directly demonstrated for read (GET /upi/v1/upNodesLinks), write (POST /upi/v1/upNodesLinks with attacker-controlled UP-node and link payload), and delete (DELETE /upi/v1/upNodesLinks/{nodeID}) operations. This vulnerability is fixed in 4.2.2.
📍 영향받는 시스템
free5GC 버전 4.2.2 이전 (SMF 세션 관리 기능)
⚔️ 공격 벡터
SBI 네트워크 접근 가능한 공격자가 Authorization 헤더 없이 HTTP 요청을 /upi/v1/upNodesLinks 엔드포인트로 전송
🛡️ 대응 방법
free5GC를 4.2.2 이상으로 업그레이드하거나 UPI 라우트에 OAuth2 인증 미들웨어 추가 구성
🔧 검증 코드
응답 코드가 401/403이면 인증 필요(안전), 200이면 미인증 접근 가능(취약)
curl -s -o /dev/null -w '%{http_code}' http://<SMF-SBI-IP>:29575/upi/v1/upNodesLinks | grep -E '^(401|403)$' && echo 'Protected' || echo 'Vulnerable'