Skip to content
Medium 6.5

Completed collection exports remain permanently downloadable by their creator after their access to the source collection is revoked

GHSA-6mcq-gx87-gqrr First seen on SecPulse

Summary

Completed collection exports remain permanently downloadable by their creator after their access to the source collection is revoked

Summary

Triggering a collection export (collections.export) requires collection-admin-level permission at the time it's requested. But the resulting `File...

Affected packages

PackageAffected → Fixed
otherOutline
< 1.10.0→ 1.10.0
Original description The description as published by the source.

Completed collection exports remain permanently downloadable by their creator after their access to the source collection is revoked

Summary

Triggering a collection export (collections.export) requires collection-admin-level permission at the time it's requested. But the resulting FileOperation is a permanent snapshot: downloading it (fileOperations.redirect/fileOperations.info) is authorized purely by fileOperation.userId === actor.id (or team-admin), with no re-check of the requester's current access to the exported collection. Once an export completes, the user who triggered it can download the full archive forever, even after every trace of their access to that collection has been removed.

Root cause

server/policies/fileOperation.ts:

allow(User, "read", FileOperation, (actor, fileOperation) =>
  and(
    isTeamModel(actor, fileOperation),
    or(isTeamAdmin(actor, fileOperation), fileOperation?.userId === actor.id)
  )
);

server/routes/api/fileOperations/fileOperations.ts's handleFileOperationsRedirect (backing both fileOperations.redirect and fileOperations.info) calls exactly this authorize(user, "read", fileOperation) and nothing else — no re-derivation of the underlying collection's current accessibility to the requester.

Compare to the trigger-time check, server/policies/collection.ts:

allow(User, ["update", "export", "archive"], Collection, (user, collection) =>
  and(
    !!collection, !!collection?.isActive…

Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details