omi icon indicating copy to clipboard operation
omi copied to clipboard

[Bounty proposal] fix(task-integrations): exception text leaks across task integration & sync endpoints ($50 proposed)

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

Symptom

When network timeouts, API failures, connection resets, or unhandled exceptions occur in backend/routers/task_integrations.py, backend/utils/task_integrations_ops.py, and backend/utils/task_sync.py:

  1. Workspace, project, team, space, and list endpoints reflect {str(e)} verbatim into client-facing HTTPException(status_code=500, detail=...).
  2. Token refresh and task creation operations reflect raw exception text and log sensitive details directly into error dictionaries returned to callers.
  3. Auto-sync endpoints return raw exception strings inside {"synced": False, "error": str(e)}.

This leaks internal system paths, socket traces, database connection parameters, and third-party error traces to API callers.

Proposed Remediation (Implemented in PR #18735)

  1. Replaced all raw exception string interpolations across Asana and ClickUp integration endpoints with static, safe error messages ("Error fetching workspaces", "Error fetching projects", "Error fetching teams", "Error fetching spaces", "Error fetching lists").
  2. Sanitized OAuth token refresh and task creation error paths to return generic error messages while logging only type(e).__name__ server-side.
  3. Sanitized auto-sync error return payloads in backend/utils/task_sync.py.
  4. Added 9 hermetic unit tests in backend/tests/unit/test_task_integrations_error_sanitization.py asserting that sensitive exception strings and IP traces never leak into responses.
  5. Registered task-integrations-error-sanitization-tests in .github/checks-manifest.yaml.

Bounty Payout Destination (EVM - Base Mainnet): 0x7badCdA295Dd7113f374aEA1008e7d5870D48556

Evos09 avatar Sep 24 '26 21:09 Evos09

Heads up for maintainers (@kodjima33 / @Git-on-my-level): This issue and PR #18735 duplicate PR #18599, which was submitted ~10 hours earlier (2026-09-24T11:17:43Z), has 100% green checks on all 23 suites, and was already reviewed and approved by @Git-on-my-level. Proposal tracked at #18760.

naufalfx805-source avatar Sep 24 '26 22:09 naufalfx805-source

I’m interested in working on this issue. The scope is clear, and I can prepare a focused implementation with tests. Please confirm the proposed reward is available for the first accepted contribution before I start.

Nombari avatar Oct 01 '26 06:10 Nombari