{"id":"GHSA-w689-557m-2cvq","summary":"Server-Side Request Forgery in gogs webhook","details":"### Impact\n\nThe malicious user is able to discover services in the internal network through webhook functionality. All installations accepting public traffic are affected.\n\n### Patches\n\nWebhook payload URLs are revalidated before each delivery to make sure they are not resolved to blocked local network addresses. Users should upgrade to 0.12.8 or the latest 0.13.0+dev.\n\n### Workarounds\n\nRun Gogs in its own private network.\n\n### References\n\nhttps://huntr.dev/bounties/da1fbd6e-7a02-458e-9c2e-6d226c47046d/\n\n### For more information\n\nIf you have any questions or comments about this advisory, please post on https://github.com/gogs/gogs/issues/6901.\n","aliases":["CVE-2022-1285","GO-2022-0583"],"modified":"2024-08-21T15:41:45.374667Z","published":"2022-06-03T15:35:32Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-06-03T15:35:32Z","nvd_published_at":"2022-06-01T06:15:00Z","cwe_ids":["CWE-918"]},"references":[{"type":"WEB","url":"https://github.com/gogs/gogs/security/advisories/GHSA-w689-557m-2cvq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1285"},{"type":"WEB","url":"https://github.com/gogs/gogs/commit/7885f454a4946c4bbec1b4f8c603b5eea7429c7f"},{"type":"PACKAGE","url":"https://github.com/gogs/gogs"},{"type":"WEB","url":"https://huntr.dev/bounties/da1fbd6e-7a02-458e-9c2e-6d226c47046d"}],"affected":[{"package":{"name":"gogs.io/gogs","ecosystem":"Go","purl":"pkg:golang/gogs.io/gogs"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.12.8"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-w689-557m-2cvq/GHSA-w689-557m-2cvq.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L"}]}