Description
Portainer through 2.45.4 contains an authorization bypass vulnerability in proxyTaskRequest that allows authenticated standard users to access restricted Swarm tasks by bypassing service resource control. Attackers can request /tasks/{id} and /tasks/{id}/logs with a known task identifier to read task specifications, environment variable secrets, and logs of other users' services.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| portainer | portainer | 0 ≤2.45.4 | — |
References
- https://github.com/portainer/portainer/blob/2.45.4/api/http/proxy/factory/docker/transport.go#L524-L534
- https://github.com/portainer/portainer/blob/2.45.4/api/http/proxy/factory/docker/transport.go#L99-L113
- https://www.vulncheck.com/advisories/portainer-through-2.45.4-authorization-bypass-via-swarm-task-inspect-and-logs