Summary
A broken authorization check in the free5GC WebConsole password-change handler may let an authenticated tenant user change another member's password. If the requester can submit the other member's email address without proving knowledge of the current password, the affected account could be taken over.
Affected context
The issue is described in the free5GC WebConsole ChangePasswordInfo handler and its POST /api/change-password endpoint. It becomes risky when the handler accepts a target member's email and a new password without verifying that the authenticated user is authorized to change that member's credentials or requiring an appropriate proof of identity.
Exploit preconditions
- Attack surface: The WebConsole password-change API.
- Required access: An authenticated tenant user account.
- Trigger point: A password-change request naming another tenant member by email.
- Why exploitation is possible: The handler reportedly does not adequately bind the requested account to the authenticated user or require the current password before changing credentials.
Why this happens
The underlying issue is an authorization failure involving a user-controlled identifier. The handler reportedly uses the supplied email to select the account to modify without sufficiently confirming that the requester may change that account's password. This maps to CWE-639: Authorization Bypass Through User-Controlled Key.
Potential impact
- An attacker may change another tenant member's password.
- The affected member could lose access to their account.
- An attacker could use the account to access resources available to that member.
- Unauthorized password changes could disrupt tenant operations.
General mitigation guidance
Defensive patterns focus on enforcing authorization at the point of every credential change:
- Derive the account being changed from the authenticated session when users change their own passwords.
- For administrative changes, verify the requester's explicit authority over the target account.
- Require appropriate identity proof, such as current-password verification for self-service changes or a separate authorized administrative workflow.
- Avoid treating client-supplied identifiers as proof of permission.
- Apply least privilege to account-management roles and record password-change events for review.
How teams detect issues like this
- Review password-change handlers for authorization checks tied to the authenticated principal and target account.
- Use static analysis or code review to identify sensitive operations that rely on client-supplied account identifiers.
- Test API policies to confirm that tenant users cannot modify credentials for other members without explicit authorization.
- Monitor audit logs for password changes where the acting user and target account differ, and enforce alerts or review policies for such events.

