Description
Jpom through 2.11.12 contains a cross-workspace authorization bypass in POST /node/ssh_command/batch that resolves command templates and SSH nodes by ID without workspace filtering. Authenticated users with SSH command execute permission in one workspace can supply foreign template and node IDs to run commands on other workspaces' SSH hosts using their stored credentials.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| dromara | Jpom | ≤ 2.11.12 | — |
References
- https://github.com/dromara/Jpom/issues/120 issue-tracking
- https://github.com/dromara/Jpom/commit/ff09fe8095a792cea9c4b8babd93a333655d0a28 patch
- https://github.com/dromara/Jpom/blob/v2.11.12/modules/server/src/main/java/org/dromara/jpom/controller/ssh/CommandInfoController.java#L176-L184 technical-description
- https://github.com/dromara/Jpom/blob/v2.11.12/modules/server/src/main/java/org/dromara/jpom/service/node/ssh/SshCommandService.java#L167-L169 technical-description
- VulnCheck Advisory: Jpom through 2.11.12 Cross-Workspace Authorization Bypass via /node/ssh_command/batch third-party-advisory