Description
Forgejo through 15.0.11, 16.0.0 through 16.0.7, and 17.0.0 through 17.0.1 contains a server-side request forgery vulnerability that allows unauthenticated attackers to make the server issue requests by submitting arbitrary OpenID identifier URLs. Attackers can POST crafted identifiers to /user/login/openid to trigger blind discovery GET requests to loopback, cloud metadata, and internal addresses for port scanning and probing.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| forgejo | forgejo | ≤ 15.0.11, 16.0.0 – ≤ 16.0.7, 17.0.0 – ≤ 17.0.1 | — |
References
- https://codeberg.org/forgejo/forgejo/src/tag/v17.0.1/modules/auth/openid/openid.go#L35-L36 technical-description
- https://abraxaslabs.tech/research/forgejo-openid-discovery-ssrf third-party-advisory
- GitHub Security Advisory (GHSA-2fcr-jfvc-vgg2) related vendor-advisory
- https://codeberg.org/forgejo/forgejo product
- VulnCheck Advisory: Forgejo through 15.0.11, 16.0.7, and 17.0.1 SSRF via OpenID Discovery third-party-advisory