Skip to content

[Bounty $200] security: twitter-chat-tools — nine /tools/* routes trust body uid and act with the victim's Twitter token #14451

Open

Description

@hridaya423

Summary

Every chat-tool route in plugins/omi-twitter-chat-tools-app/main.py takes uid from the JSON body, calls get_valid_access_token(uid) / twitter_api_request(uid, ...), and acts with that user's stored Twitter OAuth token — no caller authentication:

  • post_tweet, like_tweet, unlike_tweet, retweet, delete_tweet — write as the victim
  • get_timeline, get_my_tweets, get_mentions, search_tweets, get_user_profile — read as the victim

Anyone who knows a uid can tweet, like, retweet, or delete from the victim's connected account, or read their timeline/mentions. Same defect class as the zapier fix (#14428/#14429), the paid mentor fix (#13685), and the slack/clickup/twitter webhook fix (#14446/#14447); this app's tool routes were missed by all of them and by the #13463 umbrella.

Fix

twitter_tools_auth.py — shared-secret guard (Authorization: Bearer or twitter_tools_token query param, TWITTER_TOOLS_SECRET env) applied via Depends(require_twitter_tools_auth) to all ten tool routes. Caller authentication only — uid remains the body-level data-plane key (matches how the backend invokes tools). Fail-closed 503 when unconfigured, 401 on missing/wrong token.

PR with fix + tests follows. cc @kodjima33 @Git-on-my-level

Activity

  1. hridaya423 commented on Sep 18, 2026

    @hridaya423
    ContributorAuthor

    Fix + regression tests: #14452

  2. hridaya423 commented on Sep 18, 2026

    @hridaya423
    ContributorAuthor

    @josancamon19 @kodjima33 — fix is up and verified with regression tests; if this qualifies under the paid-bounty program I would be glad to take it on.

  3. moved this from Someday to In progress in omi TODO / bountieson Sep 18, 2026
  4. monopolymummat-cmyk commented on Oct 3, 2026

    @monopolymummat-cmyk

    Hi — I've opened #20503 (#20503).

    Disclosed: authored with AI assistance (Z.ai).

  5. added
    intelligence
    p2
    retrieval-action
    and removed
    intelligence
    on Oct 6, 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

    p2retrieval-action

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions