Secret keys exposed to every visitor (Stripe secret key, OpenAI API key)
Found on the page
Stripe secret key (sk_live_…) in inline <script> #2, line 1OpenAI API key (sk-proj-…) in /assets/index-9f8e.js, line 2
Stripe sk_live_/sk_test_/rk_live_, OpenAI, Anthropic, AWS, GitHub and Slack tokens, PEM private keys and Supabase service_role keys in attributes and inline scripts; with Deep check, in the site's own .js files too. The value is never shown.
A secret key in the page is readable by every visitor and every bot that crawls it; it can be used to charge cards, read your database or run up your API bill.
The engine's own output on a fictional test page (acme-launch.test), as the extension shows it.
Found on the page
Stripe secret key (sk_live_…) in inline <script> #2, line 1OpenAI API key (sk-proj-…) in /assets/index-9f8e.js, line 2Revoke and rotate these keys now: anyone who opened the page has them. Then move the calls that need them to your server (an API route or edge function) and keep the keys in server-only environment variables. Values are not shown here on purpose.
A prompt to paste into the builder's chat or your coding agent. It's the same text the extension copies for this finding, with the quotes from your own page.
Please fix the launch issues below in this Lovable project. Most of them live in index.html (the <head>) or in the page components. Page: https://acme-launch.test/ Secret keys: Secret keys exposed to every visitor (Stripe secret key, OpenAI API key) (must fix before launch) Where (from the page): - Stripe secret key (sk_live_…) in inline <script> #2, line 1 - OpenAI API key (sk-proj-…) in /assets/index-9f8e.js, line 2 What it should become: Revoke and rotate these keys now: anyone who opened the page has them. Then move the calls that need them to your server (an API route or edge function) and keep the keys in server-only environment variables. Values are not shown here on purpose. If a quoted snippet is intentional text and not a forgotten placeholder, don't change it, and say so. Don't change anything else: keep the layout, copy and styling as they are. When you're done, list what you changed.
Please fix the launch issues below in this Bolt project. Check index.html and the files in src/ and public/. Page: https://acme-launch.test/ Secret keys: Secret keys exposed to every visitor (Stripe secret key, OpenAI API key) (must fix before launch) Where (from the page): - Stripe secret key (sk_live_…) in inline <script> #2, line 1 - OpenAI API key (sk-proj-…) in /assets/index-9f8e.js, line 2 What it should become: Revoke and rotate these keys now: anyone who opened the page has them. Then move the calls that need them to your server (an API route or edge function) and keep the keys in server-only environment variables. Values are not shown here on purpose. If a quoted snippet is intentional text and not a forgotten placeholder, don't change it, and say so. Don't change anything else: no redesign, no new dependencies. When you're done, list the files you changed.
Please fix the launch issues below in this v0 (Next.js) project. Page metadata belongs in the metadata export of app/layout.tsx or the page file. Page: https://acme-launch.test/ Secret keys: Secret keys exposed to every visitor (Stripe secret key, OpenAI API key) (must fix before launch) Where (from the page): - Stripe secret key (sk_live_…) in inline <script> #2, line 1 - OpenAI API key (sk-proj-…) in /assets/index-9f8e.js, line 2 What it should become: Revoke and rotate these keys now: anyone who opened the page has them. Then move the calls that need them to your server (an API route or edge function) and keep the keys in server-only environment variables. Values are not shown here on purpose. If a quoted snippet is intentional text and not a forgotten placeholder, don't change it, and say so. Don't change anything else: keep the components, styles and copy as they are. When you're done, list what you changed.
Please fix the launch issues below in this Replit app. Make the changes in the code that is deployed, not only in the workspace preview. Page: https://acme-launch.test/ Secret keys: Secret keys exposed to every visitor (Stripe secret key, OpenAI API key) (must fix before launch) Where (from the page): - Stripe secret key (sk_live_…) in inline <script> #2, line 1 - OpenAI API key (sk-proj-…) in /assets/index-9f8e.js, line 2 What it should become: Revoke and rotate these keys now: anyone who opened the page has them. Then move the calls that need them to your server (an API route or edge function) and keep the keys in server-only environment variables. Values are not shown here on purpose. If a quoted snippet is intentional text and not a forgotten placeholder, don't change it, and say so. Don't change anything else and don't restructure the app. When you're done, list the files you changed and redeploy.
Fix the launch issues below in this repository. Search the codebase for each quoted snippet to find where it comes from, change only what is needed, and show me the diff. Page: https://acme-launch.test/ Secret keys: Secret keys exposed to every visitor (Stripe secret key, OpenAI API key) (must fix before launch) Where (from the page): - Stripe secret key (sk_live_…) in inline <script> #2, line 1 - OpenAI API key (sk-proj-…) in /assets/index-9f8e.js, line 2 What it should become: Revoke and rotate these keys now: anyone who opened the page has them. Then move the calls that need them to your server (an API route or edge function) and keep the keys in server-only environment variables. Values are not shown here on purpose. If a quoted snippet is intentional text and not a forgotten placeholder, don't change it, and say so. Don't change anything else: no refactors, renames or formatting changes outside these fixes. List the files you changed.