Skip to content

[Security] Exposed Google OAuth client secrets in fixed_providers.py #243

@Ahlyx

Description

@Ahlyx

Two Google OAuth client secrets are hardcoded and publicly visible in your repository:

File: src/core/provider_templates/fixed_providers.py

  • ProviderType.GEMINI_CLI — client_secret: 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
  • ProviderType.ANTIGRAVITY — client_secret: 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

These are Google OAuth client secrets (GOCSPX- prefix). The file comment acknowledges these were copied from CLIProxyAPI and are sensitive. Anyone with access to this repository can use these to impersonate the OAuth clients and potentially intercept authorization flows.

Recommended actions:

  1. Remove both client_secret values from the file immediately
  2. Report the exposed secrets to Google at https://bughunters.google.com so they can rotate them — since these appear to be Google's own internal CLI credentials, Google is the party that needs to act
  3. Load client secrets from environment variables rather than hardcoding them
  4. If these values exist in git history, use git-filter-repo to purge them

Reporting in good faith. I have not used these credentials.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions