Skip to content

truapi-server: storage key collision risk in remote_storage_key #98

@pgherveou

Description

@pgherveou

Found during review of #96. rust/crates/truapi-server/src/host_logic/permissions.rs:126 builds the storage key by joining slugs with | and domains with ,. Domain strings come from product input; nothing forbids |, ,, or the literal truapi:permissions: prefix inside a domain. Two different permission bundles could collide on the same key and one bundle's grant could authorize another. Fix: SCALE-encode the canonicalized bundle then hex/base64 it for the key, or reject domains containing reserved separator chars.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions