Skip to content

HIGH: /api/tools/:name bypasses confirmation flow — direct tool execution #100

@rz1989s

Description

@rz1989s

Description

POST /api/tools/:name accepts any tool name and passes arbitrary body input directly to executeTool(). Any authenticated user can call fund-moving tools (deposit, send, refund, sweep) directly, completely bypassing the confirmation flow that /api/command enforces.

The wallet from JWT is not injected into tool params.

File

packages/agent/src/index.ts:189-200

Fix

Either:

  1. Remove this endpoint entirely (force tool execution through chat/command flow)
  2. Or add wallet injection + dangerous tool blocklist + confirmation requirement

Priority

HIGH — confirmation flow bypass

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsecuritySecurity improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions