Nicolas
a746372325
fix(sec): block redirects in repository migration clone (SSRF)
...
Migration validates the initial clone address against the allow/block
list, but a git-service migration clones with `git clone`, which follows
an HTTP 302 from the remote to an internal address without re-validating.
This let a low-privilege user reach internal services through Gitea.
Refuse redirects on the migration clone via `http.followRedirects=false`,
the only reliable guard since git resolves redirects below Gitea's
validation layer. Applied to both the repository and wiki clones.
Assisted-by: Claude:claude-opus-4-8
2026-06-14 11:51:39 +02:00
..
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-06-12 07:35:59 +02:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-01-08 13:37:36 -08:00
2026-05-07 16:19:45 +02:00
2026-05-13 09:00:41 +02:00
2026-05-26 15:49:31 -07:00
2026-01-08 13:37:36 -08:00
2026-06-08 17:16:22 +00:00
2026-06-08 17:16:22 +00:00
2026-05-07 16:19:45 +02:00
2026-05-07 16:19:45 +02:00
2026-05-26 15:49:31 -07:00
2026-02-16 09:57:18 +00:00
2026-06-11 18:08:55 +00:00
2026-06-11 18:08:55 +00:00
2026-05-26 15:49:31 -07:00
2026-06-04 13:56:16 +00:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-02-08 20:25:30 +00:00
2026-06-04 13:56:16 +00:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-04-04 16:27:57 -07:00
2026-06-11 18:08:55 +00:00
2026-04-14 12:03:26 +00:00
2026-05-13 09:00:41 +02:00
2026-05-26 15:49:31 -07:00
2026-06-12 18:27:38 +00:00
2026-06-06 11:06:08 +00:00
2026-05-26 15:49:31 -07:00
2026-01-08 13:37:36 -08:00
2026-05-26 15:49:31 -07:00
2025-12-25 19:26:23 -08:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-06-11 17:12:30 +00:00
2026-06-06 11:06:08 +00:00
2026-06-11 18:08:55 +00:00
2026-06-13 04:43:25 +00:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-06-11 18:08:55 +00:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-06-12 18:27:38 +00:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-07 16:19:45 +02:00
2026-05-26 15:49:31 -07:00
2026-06-14 11:51:39 +02:00
2026-05-26 15:49:31 -07:00
2026-01-08 13:37:36 -08:00
2026-05-26 15:49:31 -07:00
2026-06-14 11:51:39 +02:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-07 16:19:45 +02:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-13 09:00:41 +02:00
2025-12-25 19:26:23 -08:00
2026-04-14 12:03:26 +00:00
2026-05-26 15:49:31 -07:00
2026-04-14 12:03:26 +00:00
2026-05-26 15:49:31 -07:00
2026-06-06 11:06:08 +00:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00