0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-06-18 22:19:50 +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-06-12 07:35:59 +02:00
2025-10-23 08:35:48 +00:00
2025-01-13 14:01:53 +08:00
2026-06-12 18:27:38 +00:00
2026-06-12 18:27:38 +00:00
2025-07-30 07:08:59 +00:00

Git Module

This module is merged from https://github.com/go-gitea/git which is a Go module to access Git through shell commands. Now it's a part of gitea's main repository for easier pull request.