/

CVE-2026-129465

Severity:

HIGH RISK

(8.8)

IDOR (CWE-639) in Zr.Admin.NET Profile Update Controller

CVE-2026-129465

Deferred

Vulnerability type

Category:

Insecure Direct Object Reference (IDOR)

CWE:

CWE-639

Impact:

Unauthorized account modification and potential administrator account takeover

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Zr.Admin.NET contains an insecure direct object reference in profile updates that may let an authenticated user change another account's details by supplying its user ID. If the affected profile is an administrator's, changing the phone number may enable account takeover through the phone-based login flow.

Affected context

The issue is reported in Zr.Admin.NET commits af07ffc through eb9228a, in SysProfileController.UpdateProfile. It arises when the profile update operation accepts a UserId without adequately verifying that the authenticated user is authorized to modify the corresponding account. The risk is greater where phone verification and phone-based login rely on the phone number stored in that profile.

Exploit preconditions

  • Attack surface: The profile update functionality and associated phone-based authentication flows
  • Required access: An authenticated account able to reach the profile update operation
  • Trigger point: Processing a profile update that identifies an account using a user-supplied UserId
  • Why exploitation is possible: The operation may not enforce that the requested account belongs to the authenticated user or that the user has permission to modify it
  • Additional condition for account takeover: The affected account's phone number and the phone-login verification process must be usable by the attacker

Why this happens

The underlying issue is a missing or insufficient authorization check on an object selected by a user-controlled identifier. This maps to CWE-639: Authorization Bypass Through User-Controlled Key. The insecure pattern is trusting a supplied account ID to determine which record can be modified without independently checking the caller's authorization for that record.

Potential impact

  • An attacker may modify profile details belonging to other users.
  • An attacker could change an administrator's phone number if the affected update path permits it.
  • Phone-based authentication may enable takeover of an account whose phone number was changed.
  • Unauthorized account access could lead to further changes or exposure of data available to that account.

General mitigation guidance

Common defensive patterns include:

  • Deriving the target account from the authenticated identity for self-service profile operations, rather than trusting a client-supplied account ID.
  • Enforcing object-level authorization on every update, including checks that privileged changes are permitted.
  • Treating phone-number changes as sensitive operations and requiring appropriate verification of the new number.
  • Keeping authentication identifiers and recovery flows resistant to unverified profile changes.
  • Applying least privilege to account-management functions and separating administrative operations from ordinary profile updates.

How teams detect issues like this

Review profile and account-management endpoints for updates that use client-supplied identifiers to select records. Check that authorization is enforced for the specific target object, not merely that the caller is authenticated. Static analysis and code review can look for request-bound IDs passed to data modification operations without nearby ownership or permission checks. Policy tests can verify that users cannot alter other users' profiles or sensitive authentication attributes.

Sources

SourceLink
github.comgithub.com/izhaorui/Zr.Admin.NET/blob/eb9228a23014f6000c06cab2f10ae0d44ecbbd3a/ZR.Admin.WebApi/Controllers/System/SysLoginController.cs#L516-L559
github.comgithub.com/izhaorui/Zr.Admin.NET/blob/eb9228a23014f6000c06cab2f10ae0d44ecbbd3a/ZR.Admin.WebApi/Controllers/System/SysProfileController.cs#L62-L75
github.comgithub.com/izhaorui/Zr.Admin.NET/blob/eb9228a23014f6000c06cab2f10ae0d44ecbbd3a/ZR.ServiceCore/Services/SysUserService.cs#L220-L236
github.comgithub.com/izhaorui/Zr.Admin.NET/commit/af07ffc5d18e7876d3780d1ff5ee776b80950399
github.comgithub.com/izhaorui/Zr.Admin.NET/issues/27
vul.yulun.ac.cnvul.yulun.ac.cn/20261114/zr-admin-net/
vulncheck.comvulncheck.com/advisories/zr-admin-net-commit-af07ffc-through-eb9228a-idor-via-system-user-profile

Frequently asked

questions

The reported issue requires an authenticated user to reach the profile update functionality; authentication alone does not establish permission to modify another account.

An attacker needs an account that can access the update operation. The potential for administrator account takeover also depends on the phone-based verification and login flow.

Bind self-service updates to the authenticated user's identity and enforce object-level authorization for every target account.

Test authorization across different user roles and target accounts, avoid trusting client-supplied identifiers as proof of access, and require appropriate verification for changes to authentication-related details.

Find out what's already
exploitable in your codebase.