omi icon indicating copy to clipboard operation
omi copied to clipboard

[Bounty proposal] fix(coingecko-app): exception text leaks into chat tool responses across 4 endpoints ($50 proposed)

Open Evos09 opened this issue 2 months ago • 1 comments

Following the contribution guide's invitation to propose paid work — @kodjima33, @josancamon19, would a US$50 bounty be appropriate for this? Proposed amount, not an existing award. Fix and tests are already up as PR #15522.

Symptom

All 4 chat tool endpoints and the central HTTP fetch helper in plugins/omi-coingecko-crypto-app return or raise raw exception strings ({exc}) directly to client callers and the LLM context:

  • _fetch_coingecko raised ValueError(f"CoinGecko network error: {exc}") which was reflected verbatim by tool handlers
  • /tools/get_crypto_price returned ChatToolResponse(error=f"Unexpected error fetching crypto prices: {exc}")
  • /tools/search_crypto_coins returned ChatToolResponse(error=f"Unexpected error searching crypto coins: {exc}")
  • /tools/get_trending_crypto returned ChatToolResponse(error=f"Unexpected error retrieving trending crypto: {exc}")
  • /tools/get_crypto_market_overview returned ChatToolResponse(error=f"Unexpected error retrieving market overview: {exc}")

Whatever internal socket failure, DNS error, network timeout, or host path occurred in these paths was leaked back to the HTTP client or LLM context.

Fix

  • Sanitized _fetch_coingecko network error raising to use clean generic messages.
  • Sanitized all 4 tool endpoints to return fixed, generic error messages on unexpected exceptions.
  • Added comprehensive hermetic unit tests in test_error_handling.py (5/5 passing) verifying no sensitive trace or exception text leaks into responses across all endpoints.
  • Registered coingecko-error-handling-tests in .github/checks-manifest.yaml.

Precedent

Same failure class as Slack app (#15469 - merged), Whoop app (#15476), Google Calendar app (#15493), Dropbox app (#15497), Twitter Chat Tools app (#15517), Public Holidays app (#15520), ClickUp app (#15361 / #15360), and GitHub app (#13912) exception leakage hardening.

PR: #15522


Proposed Bounty Reward: $50.00 USD
Bounty Payout Destination (Base Mainnet / EVM): 0x7badCdA295Dd7113f374aEA1008e7d5870D48556

Evos09 avatar Sep 21 '26 17:09 Evos09

Thanks for putting this together. We aren't doing bounties at the moment, so we're closing the bounty proposal issues for now — thanks for the fix! 🙏

undivisible avatar Oct 22 '26 11:10 undivisible