mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 16:28:15 +00:00
fix(security): add authorization check to ListRemoteTargetHandler (GHSA-796f-j7xp-hwf4) (#3346)
fix(security): add authorization check to ListRemoteTargetHandler ListRemoteTargetHandler only verified that request credentials existed but did not check whether the caller has replication or administrator permissions. This allowed any authenticated user to list remote replication target configuration, potentially leaking remote target credentials (accessKey, secretKey, sessionToken). Add validate_replication_admin_request() call with GetBucketTargetAction, consistent with the other replication admin handlers that already perform this check. Fixes: GHSA-796f-j7xp-hwf4 Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in: