mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-08 18:29:48 +00:00
Backport #38320 by @bircni Pull mirror sync ran `git fetch` / `remote update` / `remote prune` without disabling HTTP redirects. A mirror remote that later starts redirecting to an otherwise-blocked or internal address could be used as an SSRF/exfiltration vector on scheduled syncs, bypassing the allow/block validation applied at migration time. This sets `http.followRedirects=false` on all three remote-contacting commands in the pull mirror path, matching the existing guard already present on the clone path. Co-authored-by: bircni <bircni@icloud.com>