/

CVE-2026-110216

Severity:

HIGH RISK

(7.1)

Missing Authorization (CWE-862) in youlai-boot API

CVE-2026-110216

Awaiting Analysis

Vulnerability type

Category:

Missing Authorization

CWE:

CWE-862

Impact:

Administrative Account Lockout and Unauthorized Account State Changes

Severity:

HIGH RISK

(7.1)

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

youlai-boot contains a missing authorization check in the user-status update handler, allowing any authenticated user to change account enablement status. An attacker may disable root or administrator accounts to cause an administrative lockout or re-enable accounts that were intentionally disabled.

youlai-boot contains a missing authorization check in the user-status update handler, allowing any authenticated user to change account enablement status. An attacker may disable root or administrator accounts to cause an administrative lockout or re-enable accounts that were intentionally disabled.

Affected context

The issue affects deployments of youlai-boot through version 2.21.1 where the user-status update endpoint is reachable by authenticated users and the corresponding handler does not enforce an administrator-only authorization policy. The risk is greatest when ordinary authenticated accounts can reach this administrative function.

The issue affects deployments of youlai-boot through version 2.21.1 where the user-status update endpoint is reachable by authenticated users and the corresponding handler does not enforce an administrator-only authorization policy. The risk is greatest when ordinary authenticated accounts can reach this administrative function.

Exploit preconditions

  • Attack surface: Authenticated API access to the user-status management functionality
  • Required access: Any valid authenticated user account, unless additional external access controls restrict the endpoint
  • Trigger point: Processing of a request that changes a selected user's enabled or disabled status
  • Why exploitation is possible: The updateUserStatus handler lacks a required authorization check, so authentication is enforced without adequately verifying administrative privilege
  • Attack surface: Authenticated API access to the user-status management functionality
  • Required access: Any valid authenticated user account, unless additional external access controls restrict the endpoint
  • Trigger point: Processing of a request that changes a selected user's enabled or disabled status
  • Why exploitation is possible: The updateUserStatus handler lacks a required authorization check, so authentication is enforced without adequately verifying administrative privilege

Why this happens

The underlying defect is an authorization enforcement gap. The handler authenticates the caller but does not apply a role- or permission-based policy before performing a sensitive account-state modification. This maps to CWE-862: Missing Authorization, where a protected operation lacks an effective access-control check.

The underlying defect is an authorization enforcement gap. The handler authenticates the caller but does not apply a role- or permission-based policy before performing a sensitive account-state modification. This maps to CWE-862: Missing Authorization, where a protected operation lacks an effective access-control check.

Potential impact

  • An attacker may disable root or administrator accounts
  • Administrative users could be locked out of the application
  • Previously disabled accounts could be re-enabled without approval
  • Account governance and incident-response controls could be weakened
  • Unauthorized account-state changes could disrupt availability and administration
  • An attacker may disable root or administrator accounts
  • Administrative users could be locked out of the application
  • Previously disabled accounts could be re-enabled without approval
  • Account governance and incident-response controls could be weakened
  • Unauthorized account-state changes could disrupt availability and administration

General mitigation guidance

Mitigation generally focuses on enforcing authorization at the server-side operation boundary rather than relying on authentication alone.

Common defensive patterns include:

  • Applying explicit, deny-by-default permission checks to account-status changes
  • Restricting the operation to narrowly defined administrative roles or capabilities
  • Enforcing authorization consistently in the service layer as well as at the route boundary
  • Requiring stronger approval or step-up controls for changes to privileged accounts
  • Logging status changes with the actor, target account, decision, and outcome
  • Reducing trust in client-supplied role or identity attributes and deriving privileges from server-side session data
  • Limiting administrative service privileges according to least-privilege principles

Mitigation generally focuses on enforcing authorization at the server-side operation boundary rather than relying on authentication alone.

Common defensive patterns include:

  • Applying explicit, deny-by-default permission checks to account-status changes
  • Restricting the operation to narrowly defined administrative roles or capabilities
  • Enforcing authorization consistently in the service layer as well as at the route boundary
  • Requiring stronger approval or step-up controls for changes to privileged accounts
  • Logging status changes with the actor, target account, decision, and outcome
  • Reducing trust in client-supplied role or identity attributes and deriving privileges from server-side session data
  • Limiting administrative service privileges according to least-privilege principles

How teams detect issues like this

Organizations can identify similar authorization gaps through:

  • Static analysis and code review rules that flag sensitive handlers without access-control annotations or policy calls
  • Review of endpoints that modify users, roles, account status, or other administrative state
  • Tests that verify ordinary authenticated users receive authorization failures for privileged operations
  • API gateway and application policies that require approved roles for administrative routes
  • Audit-log analysis for account-status changes performed by non-administrative identities
  • Automated security review tools that compare endpoint sensitivity with declared authorization requirements

Organizations can identify similar authorization gaps through:

  • Static analysis and code review rules that flag sensitive handlers without access-control annotations or policy calls
  • Review of endpoints that modify users, roles, account status, or other administrative state
  • Tests that verify ordinary authenticated users receive authorization failures for privileged operations
  • API gateway and application policies that require approved roles for administrative routes
  • Audit-log analysis for account-status changes performed by non-administrative identities
  • Automated security review tools that compare endpoint sensitivity with declared authorization requirements

Sources

SourceLink
github.comgithub.com/youlaitech/youlai-boot/blob/v2.21.1/src/main/java/com/youlai/boot/system/controller/UserController.java#L114-L126
github.comgithub.com/youlaitech/youlai-boot/commit/86a9b3e212ff5a5537b0c7050c7802aea7fe486f
hackmd.iohackmd.io/@1ExmmukzRMWN7B4gQ4W-4Q/youlai-boot-role-menu-assignment-and-user-status-missing-authorization
vulncheck.comvulncheck.com/advisories/youlai-boot-through-2.21.1-missing-authorization-in-user-status-update-endpoint

Frequently asked

questions

It can be exploitable through the application's API when the affected endpoint is reachable and the attacker has a valid authenticated account.

No. The reported issue allows an authenticated user without the required administrative privilege to invoke a sensitive account-status operation.

Enforce a server-side, deny-by-default authorization policy at the handler or service boundary, and permit the operation only for explicitly authorized administrative roles or capabilities.

Maintain centralized authorization policies, test every privileged endpoint with low-privilege identities, review account-management functions separately, and monitor audit logs for anomalous state changes.

It can be exploitable through the application's API when the affected endpoint is reachable and the attacker has a valid authenticated account.

No. The reported issue allows an authenticated user without the required administrative privilege to invoke a sensitive account-status operation.

Enforce a server-side, deny-by-default authorization policy at the handler or service boundary, and permit the operation only for explicitly authorized administrative roles or capabilities.

Maintain centralized authorization policies, test every privileged endpoint with low-privilege identities, review account-management functions separately, and monitor audit logs for anomalous state changes.

Find out what's already
exploitable in your codebase.