Skip to content

Security: texture validation doesn't enforce per-user entitlement #20

Description

@BAWES

Description

resolveTextureUrls() and resolveCompanionTexture() in lib/avatar-catalog-validator.ts validate texture existence in active scoped sets but do not enforce per-user access rules (visibility, policies, grants). Crafted texture IDs could pass room-access validation even when the user shouldn't have access.

Location

lib/avatar-catalog-validator.ts lines ~35, ~60-76, ~136-142, ~167-176

Suggested Fix

Extend resolver signatures to accept user context (userId, membershipTags) and constrain DB queries to sets the user is actually entitled to.

Priority

Medium — requires architectural work, no known exploit

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions