Description
Cosmos Server through 0.24.1 contains an open redirect vulnerability in detectCallbackEndpoint that allows unauthenticated attackers to redirect users by supplying backslash-prefixed paths on auth-protected routes. Attackers can send links like /%5Cevil.example/ that, after OpenID login, produce a protocol-relative Location header redirecting victims to attacker-controlled phishing sites.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| azukaar | Cosmos Server | ≤ 0.24.1 | — |
References
- https://github.com/azukaar/Cosmos-Server/blob/v0.24.1/src/proxy/app_gate.go#L14-L21 technical-description
- https://github.com/azukaar/Cosmos-Server/blob/v0.24.1/src/authorizationserver/oauth2.go#L227-L245 technical-description
- https://github.com/azukaar/Cosmos-Server/blob/v0.24.1/src/authorizationserver/oauth2.go#L378-L382 technical-description
- VulnCheck Advisory: Cosmos Server through 0.24.1 Open Redirect via Backslash Path After OpenID Login third-party-advisory