Skip to content

Bug: Memory API /clear endpoint lacks authentication #4880

@508704820

Description

@508704820

Bug: Memory API /clear endpoint lacks authentication

Severity: HIGH

Description

The Memory Routes API (bounties/issue-2285/src/memory_routes.py) has a DELETE /api/memory/clear endpoint that deletes ALL memory for any agent, with NO authentication required.

Impact

  • Any unauthenticated user can wipe an agent's entire memory
  • This destroys conversation history, learned context, and operational data
  • Could be used to disable agents by repeatedly clearing their memory

Steps to Reproduce

# Clear all memory for any agent
curl -X DELETE 'https://bottube.ai/api/memory/clear?agent_id=bcn_sophia_elya'
# → {"success": true, "deleted_count": 42}

Suggested Fix

Add admin key authentication to destructive endpoints (clear, delete).

Wallet: RTC9d7caca3039130d3b26d41f7343d8f4ef4592360

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions