Summary
UrlHub has a missing authorization check on the /admin/user/store account-creation route, allowing authenticated users to create accounts with administrator privileges. If the route is reachable and accepts a client-supplied role without enforcing authorization server-side, an attacker may gain full administrative control.
Affected context
The issue occurs in UrlHub's administrative user-creation flow. The role:admin middleware reportedly covers view and create actions but not the /admin/user/store route, leaving account creation insufficiently protected. The risk is greatest when ordinary authenticated users can reach this route and the server accepts an administrator role supplied in the request.
Exploit preconditions
- Attack surface: The
/admin/user/storeroute in the web application - Required access: An authenticated user account; self-registration may provide this access where enabled
- Trigger point: Processing a user-creation request
- Why exploitation is possible: Authorization middleware does not cover the route, and the request can specify an administrator role
Why this happens
The underlying issue is a missing authorization check, mapped to CWE-862. The application applies role-based middleware inconsistently across administrative actions, leaving a sensitive account-creation operation accessible without an adequate permission check. Trusting a client-supplied role when creating an account can allow a lower-privileged user to assign elevated privileges.
Potential impact
- An attacker may create an administrator account
- Unauthorized users could gain full administrative control
- Administrative data and settings could be altered or exposed
- The compromised application could be used to affect other users or connected systems
General mitigation guidance
Defensive patterns include applying server-side authorization checks to every sensitive route and action, including account creation. Derive roles and permissions from trusted server-side policy rather than accepting privilege levels from client input, and default new accounts to the least privilege necessary. Use centralized authorization controls and review route coverage to reduce gaps between related actions.
How teams detect issues like this
- Review route definitions and middleware mappings for sensitive actions that lack authorization checks
- Use static analysis or code review to identify user-controlled role assignments and inconsistent access-control enforcement
- Test authorization policies to confirm ordinary users cannot create or promote accounts
- Enforce policy checks in CI and monitor account-creation events for unexpected privilege assignments

