You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bounty $200] security: twitter-chat-tools — nine /tools/* routes trust body uid and act with the victim's Twitter token #14451
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.
Activity
hridaya423 commentedon Sep 18, 2026
Fix + regression tests: #14452
hridaya423 commentedon Sep 18, 2026
@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.
ci: register twitter chat-tools auth tests; fix issue ref in docstring
fix(plugins): require auth on twitter-chat-tools routes acting on uid…
fix(plugins): require auth on twitter-chat-tools routes acting on uid…
monopolymummat-cmyk commentedon Oct 3, 2026
Hi — I've opened #20503 (#20503).
Disclosed: authored with AI assistance (Z.ai).
docs(plugins): document TWITTER_TOOLS_SECRET on chat tool endpoints (B…