seleth
Sign inSign up

A full-access service key reached the browser

Privileged service key exposed to client

What this means

Your page source contains a service key that bypasses every access rule for your database. That key belongs on the server only.

Why it matters

Such a key removes all data protection: access rules simply do not apply to it. Publishing it is equivalent to publishing your database administrator password.

How to fix it

  • Revoke the key immediately โ€” anyone who opened the page could have saved it.
  • Keep only the restricted public key in the browser.
  • Review database access logs for the period the key was exposed.
Prompt for your AI agent
Remove the full-access service key from client code, revoke it, and use only the restricted public key in the browser.

How to verify the fix: scan the page again โ€” the service key must be gone

Classification: CWE-522 CWE-284 ยท API2:2023
References: cwe.mitre.org

โ† Check your own app