Summary
OpenAM self-registration does not enforce the configured Valid Creation Attributes list, allowing anonymous users to set restricted attributes such as group membership. If self-registration is available through an affected endpoint or flow, an attacker may join an administrative group and gain control of OpenAM.
Affected context
The issue affects OpenAM deployments before 16.1.4 when self-registration is available through the legacy self-service REST endpoint or the User Self-Service flow. In these contexts, the Valid Creation Attributes list is not enforced for submitted attributes, potentially allowing a registrant to set restricted values, including group membership.
Exploit preconditions
- Attack surface: OpenAM self-registration through the legacy self-service REST endpoint or User Self-Service flow
- Required access: No prior authentication is required when the registration interface is available to anonymous users
- Trigger point: Account creation with restricted attributes accepted during registration
- Why exploitation is possible: The registration process fails to enforce the Valid Creation Attributes list, so user-controlled values may affect privileged group membership
Why this happens
The underlying issue is a failure to enforce attribute authorization during self-registration. This is an improper privilege management weakness (CWE-269): the application permits an unauthenticated user to influence security-sensitive account attributes without adequately restricting which values can be assigned. Because group membership can determine administrative privileges, accepting such attributes can cross an authorization boundary.
Potential impact
- An attacker may register an account with unauthorized group membership
- A newly created account could gain administrative privileges
- OpenAM configuration and identity-management functions could be compromised
- Administrative access could enable further changes to users, policies, or connected services
General mitigation guidance
Defensive approaches focus on enforcing authorization at the point where accounts and attributes are created.
- Use an explicit allowlist of attributes that unauthenticated users may set, and reject restricted attributes server-side
- Assign security-sensitive attributes, including group membership, only through trusted administrative workflows
- Validate requested values against policy and avoid relying on client-side checks or UI behavior
- Limit privileges granted to newly registered accounts and apply least privilege to administrative roles
- Restrict exposure of self-registration interfaces when they are not required
How teams detect issues like this
Review registration handlers and identity-management policies for paths that accept client-supplied attributes without server-side authorization checks. Use static analysis and code review to identify attribute assignment from unauthenticated requests, especially for group or role fields. Monitor audit logs for newly registered accounts receiving privileged memberships, and enforce policies that prevent self-service flows from assigning administrative roles.

