You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
basic/mentor: unauthenticated session_id lets callers read and poison other sessions' transcript buffers #13665
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.
Activity
fix(plugins): bind mentor transcript buffer to authenticated uid (#13685