Skip to content

Signed-cookie sessions are vulnerable to key injection because session state is serialized with a custom delimiter-based parser instead of a structured format #293

Description

@hourianto

https://github.com/planety/prologue/blob/devel/src/prologue/core/types.nim#L143

The function splits on :, ,, and } without escaping. Storing alice, is_admin: true in one session field (e.g. user) round-trips as two fields (user=alice, is_admin=true)

Found by GPT 5.4.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions