fix(security): patch SSRF in federation node import and restrict its access

This commit is contained in:
sagitchu
2026-04-17 11:52:08 +08:00
parent 5503d146e6
commit 5e2580bd45
4 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ func requiresAdmin(path string) bool {
return true
}
if strings.HasPrefix(path, "/api/v1/federation/share/") {
if strings.HasPrefix(path, "/api/v1/federation/share/") || strings.HasPrefix(path, "/api/v1/federation/node/") {
return true
}