Skip to content

Create Google Gemini API Key Check#15652

Merged
ritikchaddha merged 3 commits intoprojectdiscovery:mainfrom
mestizo:google-gemini-api-key-check
Mar 30, 2026
Merged

Create Google Gemini API Key Check#15652
ritikchaddha merged 3 commits intoprojectdiscovery:mainfrom
mestizo:google-gemini-api-key-check

Conversation

@mestizo
Copy link
Copy Markdown
Contributor

@mestizo mestizo commented Mar 22, 2026

PR Information

When the Gemini API (Generative Language API) is enabled on a Google Cloud project, existing API keys in that project can silently gain access to sensitive Gemini endpoints. When you create a new API key in Google Cloud, it defaults to "Unrestricted," meaning it's immediately valid for every enabled API in the project, including Gemini.

Template validation

  • Validated with a host running a vulnerable version and/or configuration (True Positive)
  • Validated with a host running a patched version and/or configuration (avoid False Positive)

Additional Details (leave it blank if not applicable)

Additional References:

@neo-by-projectdiscovery-dev
Copy link
Copy Markdown

neo-by-projectdiscovery-dev bot commented Mar 22, 2026

Neo - Nuclei Template Review

No security issues found

3 issues fixed in this PR

Hardening Notes
  • The matcher logic remains unchanged between commits - still uses '!contains(body, "error")' and redundant '!status_code == 403' check without positive validation of Gemini API response structure
  • Template already has verified: true flag and lowercase severity as expected
  • No positive response body validation added (e.g., checking for 'files', 'nextPageToken', or valid JSON structure from Gemini API)

Comment @pdneo help for available commands. · Open in Neo

@pussycat0x pussycat0x added the Done Ready to merge label Mar 24, 2026
@ritikchaddha ritikchaddha merged commit f60efef into projectdiscovery:main Mar 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Done Ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants