Circles' remote-instance signature verification fetches the attacker-supplied keyId URL before trust in the remote in…
Nextcloud Server
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Nextcloud Server |
| No fix yet |
Original description
Circles' remote-instance signature verification fetches the attacker-supplied keyId URL before trust in the remote instance is established, and explicitly allows local/private addresses for this request, bypassing Nextcloud's core SSRF protections. The public, unauthenticated endpoints POST /apps/circles/event/ and POST /apps/circles/incoming/ reach this code path, allowing any unauthenticated user to force the server to issue a GET request to an internal address.
The response body of the internal request is never returned to the requester, so this is blind SSRF: an attacker can determine whether an internal service is reachable, but cannot read its response contents through this endpoint alone.
From the CVE record · hackerone