Skip to content

CRITICAL: Conversation history injection allows prompt injection bypass #1

@DavidLambauer

Description

@DavidLambauer

Description

The Chat controller accepts a history JSON parameter from the browser and passes it unsanitized to AgentLoop. A malicious admin can inject system/tool role messages to override safety instructions.

Location

  • Controller/Adminhtml/Assistant/Chat.php:47-51
  • Model/Assistant/AgentLoop.php:31

Fix

Validate conversation history roles, strip tool_calls from client messages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsecuritySecurity vulnerability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions