gitforge/services/federation
forgejo-backport-action 111902490d [v16.0/forgejo] federation: protect against SSRF attacks (#13351)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/11795

Adds an extra check to ensure the `keyId` and `actorId` included in signed requests and actor records point back to the originating host.  This check prevents server-side request forgery (SSRF) attacks where a carefully crafted request could be used to trick a federation server into making requests to arbitrary hosts and ports.

### Tests for Go changes

- I added test coverage for Go changes...
  - [x] in their respective `*_test.go` for unit tests.
  - [x] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I ran...
  - [x] `make pr-go` before pushing

Co-authored-by: elle <0xllx0@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/13351
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
2026-07-08 20:33:12 +02:00
..
delivery_queue.go [v16.0/forgejo] federation: protect against SSRF attacks (#13351) 2026-07-08 20:33:12 +02:00
error.go chore(federation): re-enable nilnil lint (#11253) 2026-04-13 22:05:29 +02:00
federation_service.go [v16.0/forgejo] federation: protect against SSRF attacks (#13351) 2026-07-08 20:33:12 +02:00
person_inbox_accept.go Sent user activities to distant federated server (#8792) 2025-08-06 16:16:13 +02:00
person_inbox_create.go chore(federation): re-enable nilnil lint (#11253) 2026-04-13 22:05:29 +02:00
person_inbox_follow.go
person_inbox_undo.go chore(federation): re-enable nilnil lint (#11253) 2026-04-13 22:05:29 +02:00
person_service.go chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
repository_inbox_like.go [v16.0/forgejo] federation: protect against SSRF attacks (#13351) 2026-07-08 20:33:12 +02:00
repository_service.go
result.go
signature_service.go [v16.0/forgejo] federation: protect against SSRF attacks (#13351) 2026-07-08 20:33:12 +02:00
user_activity.go fix(activitypub): only return public activities on request (#12382) 2026-05-09 05:02:57 +02:00