omi icon indicating copy to clipboard operation
omi copied to clipboard

[Bounty proposal] fix(google-calendar-app): exception text leaks into HTTP & chat tool responses across 8 endpoints ($50 proposed)

Open Evos09 opened this issue 2 months ago • 3 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 #15493.

Symptom

Multiple HTTP handlers, chat tool endpoints, and API helpers in plugins/omi-google-calendar-app return or raise raw exception strings (str(e)) directly to client callers and the LLM context:

  • /auth/google had unhandled storage execution that could raise unhandled 500 exceptions
  • /auth/google/callback reflected raw unescaped Authentication error: {str(e)} directly in HTML responses at line 1186
  • calendar_api_request returned {"error": str(e)} on network or unexpected exceptions, bubbling connection socket paths and sensitive URLs up to callers
  • 6 Chat tool endpoints (/tools/list_events, /tools/create_event, /tools/get_event, /tools/update_event, /tools/delete_event, /tools/list_calendars) returned raw str(e) in ChatToolResponse(error=f"Failed to ...: {str(e)}")

Whatever internal database error, file path, socket failure, or credential trace occurred in these paths was leaked back to the HTTP client or LLM context.

Fix

  • All endpoints now log exceptions server-side while returning fixed, generic error messages to clients.
  • Wrapped state verification, deletion, and token exchange inside a unified try-except block in google_callback, rendering a safe dark-themed error card.
  • Sanitized calendar_api_request to return generic {"error": "Google Calendar API request failed"}.
  • Added comprehensive hermetic unit tests in test_error_handling.py (9/9 passing) verifying no sensitive trace or exception text leaks into responses across all endpoints/methods.
  • Registered google-calendar-error-handling-tests in .github/checks-manifest.yaml.

Precedent

Same failure class as Slack app (#15469 - merged), Whoop app (#15476), ClickUp app (#15361 / #15360), and GitHub app (#13912) exception leakage hardening.

PR: #15493


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

Evos09 avatar Sep 21 '26 15:09 Evos09

Already implemented, hermetically tested (9/9 passing), and open for review in PR #15493 by @Evos09. Registered google-calendar-error-handling-tests in .github/checks-manifest.yaml (53/53 checks passing). Ready for maintainer review!

Evos09 avatar Sep 21 '26 15:09 Evos09

I have submitted a solution for this issue in PR https://github.com/BasedHardware/omi/pull/18687. Full implementation and verification included. Payout wallet (Solana): 2BTCUUTviLNDtZDRBhPBTwSXZMrTttPJNbGevMXBBMKK

themaksat avatar Sep 24 '26 15:09 themaksat

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