Skip to content

fix(desktop): profile id is used unsanitized in a file path #19

Closed

Description

@arifintahu

profile_upsert / profile_delete build profiles/<id>.toml from the caller's id. An id with ../ or ..\ writes or deletes any .toml file outside the profiles folder.

Fix: accept only [A-Za-z0-9_-]{1,64} in save/delete (and the IPC commands). Add tests for traversal ids.

Fix before 1.0.0.

Activity

  1. added
    bug
    security
    on Oct 28, 2026
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

    bugsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions