Summary
Dockhand has an authorization flaw that can let a non-admin user with settings:edit permission change an OIDC provider's configuration, including its admin group claim. If the user can then log in through that provider with an identity matching the altered claim, they may gain full administrator access.
Affected context
The vulnerability affects Dockhand versions before 1.0.57 when OIDC authentication is configured and a user with settings:edit permission can reach the provider-configuration API. An improper permission check may allow that user to change the provider's adminClaim setting, which is used to determine administrative access during OIDC login.
Exploit preconditions
- Attack surface: The OIDC provider configuration API at
/api/auth/oidc/<provider-id> - Required access: An authenticated non-admin account with
settings:editpermission - Trigger point: A
PUTrequest that changes the provider'sadminClaim - Additional condition: The attacker must be able to complete an OIDC login whose group claim matches the configured admin claim
- Why exploitation is possible: The permission check does not adequately restrict changes to security-sensitive OIDC settings
Why this happens
The API applies an insufficient authorization check when updating OIDC provider settings. This allows a user with general settings-edit access to modify a configuration value that controls administrator assignment. The issue maps to CWE-269: Improper Privilege Management, because permissions do not adequately constrain a sensitive privilege-related operation.
Potential impact
- A non-admin user could gain full administrator access after a qualifying OIDC login
- An attacker could change authentication behavior for users relying on the affected provider
- Administrative access could enable further changes to Dockhand-managed resources
General mitigation guidance
Defensive patterns include separating routine settings permissions from access to authentication and authorization controls, and applying explicit role checks to sensitive provider updates. Treat identity-provider configuration as security-critical: validate changes against a strict schema, protect it from unauthorized modification, and require appropriately privileged approval. Use least-privilege accounts and limit who can edit OIDC settings.
How teams detect issues like this
Review authorization logic for API routes that update identity-provider configuration, especially checks based only on broad settings permissions. Audit OIDC configuration changes and monitor for unexpected changes to admin group claims or provider settings. Static analysis and code review policies can flag sensitive authorization fields updated through endpoints without explicit privileged-access checks.

