Description
AFFiNE's histories GraphQL field fails to validate Doc.Read permission before exposing document edit history, allowing authenticated workspace members to retrieve restricted content timelines. Attackers can supply arbitrary document GUIDs to access full edit histories including user names, emails, and timestamps of private pages they lack access to.
Problem types
Product status
Any version before 0.26.3
Any version
Credits
George Chen
References
github.com/toeverything/AFFiNE/issues/15179
github.com/toeverything/AFFiNE/issues/15179 (GitHub Issue)
github.com/toeverything/AFFiNE (Product)
github.com/...ommit/1f0bcd01a37a522393fc1b288395e3a72a79ccad (Patch Commit)
www.vulncheck.com/...tory-access-via-graphql-histories-field