Bounty Proposal: Sanitize internal exception disclosure in oauth token verification ( USDC)
Bounty Proposal: $50 USDC
Target: backend/routers/oauth.py
Pull Request: https://github.com/BasedHardware/omi/pull/19715
Base Mainnet Wallet: 0x496e32ff3851cdb9146223a811e3d4f9218dd954
Vulnerability / Hardening Scope
In /oauth/token (backend/routers/oauth.py), failures during Firebase ID token verification interpolated the raw exception object {e} directly into HTTP 401 client response details (detail=f"Invalid Firebase ID token: {e}" and detail=f"Error verifying Firebase ID token: {e}"). This leaked internal token decoding internals and Google Cloud Auth transport/connection errors to callers without logging them server-side.
Solution & Verification
- Fixed in PR #19715 by returning sanitized static 401 details (
"Invalid Firebase ID token"and"Error verifying Firebase ID token"). - Added structured logging (
logger.error(..., exc_info=True)) to preserve diagnosability for operators. - Validated with hermetic unit tests in
backend/tests/unit/test_oauth_token_async_boundaries.py(5/5 tests pass).
Hello! I?m interested in the scoped OAuth token-verification hardening task described here. Before starting or relying on the existing PR, could you confirm that the proposed $50 USDC bounty is currently available, the acceptance criteria, and the payment route? I will keep the change limited to the described exception-disclosure remediation and tests.
Closing as completed. The OAuth invalid-token response is a static 401 detail on main (6ff495561893), backend/routers/oauth.py.