operations: add AuthRequired to operations/fsinfo to prevent backend creation CVE-2026-41179

The operations/fsinfo RC endpoint was registered without AuthRequired,
allowing unauthenticated callers to instantiate arbitrary backends via
inline backend definitions.

See GHSA-jfwf-28xr-xw6q
This commit is contained in:
Nick Craig-Wood
2026-04-14 17:08:55 +01:00
parent 08490972a5
commit 9e3e68d00c

View File

@@ -430,9 +430,10 @@ func rcPublicLink(ctx context.Context, in rc.Params) (out rc.Params, err error)
func init() {
rc.Add(rc.Call{
Path: "operations/fsinfo",
Fn: rcFsInfo,
Title: "Return information about the remote",
Path: "operations/fsinfo",
AuthRequired: true,
Fn: rcFsInfo,
Title: "Return information about the remote",
Help: `This takes the following parameters:
- fs - a remote name string e.g. "drive:"