Labring FastGPT
FastGPT: S3 presign/read handlers do not bind the object key to the caller's team (cross-team file disclosure)
FastGPT is an open source AI knowledge base platform. Prior to v4.15.0-beta5, two FastGPT file handlers authorize an unrelated resource and then sign or read an S3 object using a key taken directly from the request, without checking that the key belongs to the caller's team. Because S3 object keys are global within the bucket and carry the tenant id only as a path segment, an attacker can supply another team's key and obtain its file contents through the chat-file presign endpoint or dataset preview endpoint. This issue is fixed in version v4.15.0-beta5.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 4.15.0-beta5
Fixed in 4.15.0-beta5
Mitigation
Upgrade FastGPT to 4.15.0-beta5 or later.
References
- Vendor advisory github.com/labring/FastGPT/security/advisories…
- Patch github.com/labring/FastGPT/pull/7104
- Patch github.com/labring/FastGPT/commit/decb6d2fb141…
1 more
- Release notes github.com/labring/FastGPT/releases/tag/v4.15.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.