Skip to content

basic/mentor: unauthenticated session_id lets callers read and poison other sessions' transcript buffers #13665

Closed

Description

@ajanraj

POST /mentor (plugins/basic/mentor.py) trusts the client-supplied session_id as the sole identity of the Redis transcript buffer, and the route is mounted without authentication.

Consequences: a caller who guesses another session's id gets that session's accumulated transcript embedded into the returned notification.prompt (cross-session disclosure), and can append segments into the victim's buffer, which feeds the mentor prompt verbatim (indirect prompt injection of advice shown to the victim). The codeword gate is satisfied by putting the trigger phrase in the caller's own segment.

Suggest binding the buffer key to an authenticated uid, or adding service auth on the route. Found while fixing the eval() on the same buffer in #13664 — flagging separately since it's an identity/auth contract issue, not the parse bug.

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions