Summary
Jpom contains a cross-workspace authorization bypass in Docker host management: an authenticated user with Docker permission in one workspace may access Docker assets belonging to another workspace by supplying their asset IDs. This could allow unauthorized control of containers and other Docker resources, with privileged container creation and host bind mounts increasing the potential impact.
Affected context
The issue affects Jpom deployments where Docker host management accepts asset identifiers without adequately verifying that the referenced assets belong to a workspace the authenticated user is authorized to manage. Risk depends on the deployment's workspace permissions, endpoint exposure, and controls around privileged container creation and host bind mounts.
Exploit preconditions
- Attack surface: Jpom Docker host and asset management functionality
- Required access: An authenticated account with Docker permission in at least one workspace
- Trigger point: A management request that references a Docker asset ID from another workspace
- Why exploitation is possible: The referenced asset may be acted on without sufficient authorization checks against its owning workspace
Why this happens
The underlying issue is an object-level authorization failure. If the application accepts a user-supplied asset ID but does not verify the user's permission for the workspace that owns that asset, a user may cross workspace boundaries. This maps to CWE-639: Authorization Bypass Through User-Controlled Key, where a user-controlled identifier is used to access an object without enforcing the appropriate authorization relationship.
Potential impact
- An attacker may manage Docker hosts or resources outside their authorized workspace.
- They could control containers, images, volumes, and networks belonging to other workspaces.
- They could create privileged containers or configure host bind mounts, potentially affecting the underlying host.
- Unauthorized changes could disrupt services, expose data, or enable further compromise, depending on Docker and host permissions.
General mitigation guidance
Common defensive patterns include:
- Enforce authorization on every operation using the asset's actual workspace ownership, rather than relying on a supplied identifier alone.
- Scope resource lookups to the workspaces the authenticated user is authorized to access.
- Apply least privilege to workspace roles and Docker operations.
- Restrict privileged container creation and host bind mounts to explicitly authorized workflows.
- Treat client-supplied identifiers as untrusted and deny access by default when ownership or permission checks are missing or ambiguous.
How teams detect issues like this
High-level detection approaches include:
- Review authorization checks on Docker asset endpoints, especially paths that accept user-controlled IDs.
- Use static analysis or code review to identify resource lookups that are not scoped by workspace or followed by ownership checks.
- Test access-control policies to confirm users cannot read or modify assets across workspace boundaries.
- Monitor audit logs for Docker management actions where the acting user's workspace differs from the asset's owning workspace.
- Apply policy checks requiring explicit authorization for privileged containers and host bind mounts.

