Description
Cosmos Server before 0.24.0 contains a server-side request forgery vulnerability that allows authenticated non-admin users to make the server request arbitrary URLs via the q parameter. Attackers can abuse /cosmos/api/ping and /cosmos/api/favicon, which follow redirects without host restrictions, to probe internal services and read image or octet-stream responses.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| azukaar | Cosmos Server | < 0.24.0 | 0.24.0 |
References
- https://github.com/azukaar/Cosmos-Server/blob/v0.24.0-unstable030/src/icons.go#L27-L43 technical-description
- https://github.com/azukaar/Cosmos-Server/blob/v0.24.0-unstable030/src/icons.go#L92-L100 technical-description
- https://github.com/azukaar/Cosmos-Server/blob/v0.24.0-unstable030/src/icons.go#L297-L345 technical-description
- Cosmos Server v0.24.0 Release Notes release-notes
- VulnCheck Advisory: Cosmos Server before 0.24.0 SSRF via favicon and ping API endpoints third-party-advisory