Skip to content

[security] /v1/tools/execute has no role/quota gate #484

@EnjoyBacon7

Description

@EnjoyBacon7

Severity: Low

openrag/routers/tools.py /v1/tools/execute (and /v1/tools) sit behind AuthMiddleware (any authenticated user) but have no partition/role dependency and no quota check. extractText runs the full (potentially expensive) serialization pipeline on an uploaded file with no rate/role gate.

No cross-tenant data is reachable (it only processes the uploaded file, deleted in finally), so this is a resource-abuse / DoS concern rather than an isolation bug. Consider a role or quota gate, and combine with the path-traversal hardening for this endpoint (tracked separately/privately).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions