Skip to content

Public scope fix - #519

Merged
rhafer merged 3 commits into
mainfrom
public-scope-fix
Feb 5, 2026
Merged

rhafer merged 3 commits into
mainfrom
public-scope-fix

Conversation

@rhafer

@rhafer rhafer commented Feb 5, 2026

Copy link
Copy Markdown
Member

aduffeck and others added 3 commits February 5, 2026 10:08
To verify that a resource is within the scope of a public link token,
both the resourceId from the scope and the accessed reference need to be
Stat'ed in order to check:
a) whether they're within the same space (by checking the space ids)
b) whether the accessed ref is actually a child of the shared resource
(by checking the paths)

Additionally the cache key for the 'scopeExpansionCache' is fixed to
to take the resource id of the target resource into account.
scope# This is the commit message #2:

With the above fixes the `checkRelativeRefernce()` method is no longer
needed and was removed. It contained another bug that would allow access
to resources out of the share scope.

Fixes: CVE-2026-23989
This includes:
* test for accessing non-shared resource using a publiclink token
* tests that verify read links do not allow write operations
* test for sharing a direct child of the space root
@rhafer
rhafer merged commit f223ef6 into main Feb 5, 2026
2 of 3 checks passed
@rhafer
rhafer deleted the public-scope-fix branch February 5, 2026 09:45
@openclouders openclouders mentioned this pull request Feb 4, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants