Free5GC PCF: Missing authentication middleware in Npcf_SMPolicyControl allows access to SM policy handlers and disclosure of subscriber SUPI
Summary
Free5GC PCF: Missing authentication middleware in Npcf_SMPolicyControl allows access to SM policy handlers and disclosure of subscriber SUPI
Original description
The description as published by the source.
Summary
PCF Npcf_SMPolicyControl missing authentication middleware allows unauthenticated access to SM policy handlers and disclosure of subscriber SUPI
Details
In NewServer(), the smPolicyGroup route group is created and routes are applied without attaching the router authorization middleware. In contrast, other PCF service groups such as Npcf_PolicyAuthorization do attach RouterAuthorizationCheck before route registration.
Because the middleware is missing, requests to the following endpoints can reach business logic even when no valid OAuth token is provided:
POST /npcf-smpolicycontrol/v1/sm-policiesGET /npcf-smpolicycontrol/v1/sm-policies/{smPolicyId}POST /npcf-smpolicycontrol/v1/sm-policies/{smPolicyId}/updatePOST /npcf-smpolicycontrol/v1/sm-policies/{smPolicyId}/delete
This is visible at runtime because unauthenticated requests return business-level responses such as 400 or 404 instead of being rejected with 401 before handler execution. Under valid lab preconditions (existing UE/session context and related policy data), unauthenticated POST /sm-policies can succeed with 201, and unauthenticated GET /sm-policies/{id} can succeed with 200 and return policy context containing subscriber identifiers including supi.
The root cause is missing router auth enforcement for Npcf_SMPolicyControl.
Upstream also fixed this by adding RouterAuthorizationCheck to smPolicyGroup (and uePolicyGroup) in free5gc/pcf PR #63.
#…
Source: NIST National Vulnerability Database NVD GitHub Advisory
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
free5GCは、5Gコアネットワークのオープンソース実装です。バージョン4.2.2より前では、PCF Npcf_SMPolicyControlの認証ミドルウェアが欠如しているため、認証されないアクセスが可能で、加入者のSUPIが漏洩する可能性があります。この脆弱性はバージョン4.2.2で修正されています。
PCF Npcf_SMPolicyControlの認証ミドルウェアが欠如しているため、認証されていないアクセスが可能でSUPIの漏洩につながる。
free5GCのPCF Npcf_SMPolicyControl、バージョン4.2.2より前。
未認証アクセスが可能であり、加入者データが漏洩する可能性がある。
バージョン4.2.2にアップデートする。
情報なし
RouterAuthorizationCheckミドルウェアが適用されていないことを確認する。
Affected packages
References
- advisory nvd.nist.gov
- exploit github.com
- package github.com
- patch github.com
- patch security-advisories@github.com
- patch security-advisories@github.com
- web github.com