Skip to content

[Bounty $150] security: composio backend routes trust client-supplied uid — write memories into any Omi account, read any Notion workspace #14701

Closed

Description

@kduailabs

Summary

Four backend routes in plugins/composio trust a client-supplied uid with no caller authentication:

  • POST /api/omi/facts?uid=<uid> + POST /api/omi/facts/batch: create facts/memories in Omi for any uid using the app's integration key (OMI_APP_ID/OMI_API_KEY).
  • POST /api/notion/blocks/{block_id} (uid in body) + GET /api/notion/page/{page_id}?uid=: read the user's Notion workspace with the user's stored OAuth token.

Impact

  • Memory poisoning: anyone can write arbitrary facts into an arbitrary user's Omi memory store via the app's integration key.
  • Horizontal data access: anyone can read the private Notion content of any user who connected the integration (page metadata + blocks) using that user's stored token.

Same class as the filings for slack/clickup/twitter (#14446), whoop (#14453), twitter-chat-tools (#14451), the seven apps in #14455, and shipbob/ms365 (#14666/#14683); composio's routes aren't /tools/*-shaped so they were missed.

Fix

PR #14700: shared-secret guard (COMPOSIO_TOOLS_SECRET via Authorization: Bearer or composio_tools_token, hmac.compare_digest, fail-closed 503 when unset) applied via Depends() to the four routes, same idiom as the reviewed #14561 guards. 7 hermetic tests + checks-manifest registration included.

Proposed bounty: $150 — single app, four routes, no logic changes.

cc @kodjima33 @Git-on-my-level

Activity

  1. aryanorastar commented on Sep 20, 2026

    @aryanorastar
    Collaborator

    Closing as already fixed on current main.

    Merged #14700 added plugins/composio/src/tools_auth.py; current main Depends(require_composio_tools_auth) on facts/notion routes

  2. moved this from Someday to In review in omi TODO / bountieson Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions