0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-06-18 13:37:23 +02:00
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-31 03:33:13 +00:00
2026-06-12 07:35:59 +02:00
2026-06-12 08:36:05 +08:00
2026-06-12 08:36:05 +08:00