LeakRay
Passive · 16 checks · Zero signup · <15s

X-ray your web app for real leaks before attackers do

Paste a live URL to catch exposed private keys, open .env files, missing Supabase RLS signals, and broken security headers — with copy-paste fixes for your exact stack.

CLInpx leakray https://your-app.com
Docs

Live output

See what a LeakRay report looks like

/sample-report
Sample reportcompleted

demo.leakray.dev

https://demo.leakray.dev

Scanned ·
Mar 18, 2026, 2:22 PM UTC
Duration ·
4.8 s
Findings ·
5
  • Next.js
  • React
  • Vercel
  • Supabase
  • Stripe
Grade F

Pass / Fail diagnostic matrix

All 16 Phase 1 passive checks at a glance. Click any Fail or Info row to jump straight to its finding.

Pass
11
Fail
4
Info
1

Secrets & sensitive files

BaaS & stack

Transport, headers & cookies

Findings

Expand a finding for impact, redacted evidence, developer fix, and a copy-paste AI prompt. 5 total

Impact

Attackers can create fraudulent charges, steal customer payment data access, and permanently compromise your Stripe account until the key is rotated.

Redacted evidence

Location
/_next/static/chunks/app-billing-9a2f.js
Snippet
stripeKey: "sk_live_****9a2f"

Developer fix

1. Immediately rotate the Stripe secret key in the Stripe Dashboard → Developers → API keys.
2. Move the secret into a server-only environment variable (e.g. STRIPE_SECRET_KEY).
3. Ensure it is only read in Server Actions, Route Handlers, or backend workers — never import it into Client Components.

// apps/web/src/lib/stripe.ts (server-only)
import "server-only";
import Stripe from "stripe";

export const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, {
  apiVersion: "2024-11-20.acacia",
});

AI fix prompt (Cursor / Claude Code / Lovable / Bolt)

You are fixing a critical LeakRay finding in a Next.js App Router app.

Finding: A Stripe live secret key (sk_live_) is bundled into client-side JavaScript.

Tasks:
1. Find every import/usage of the Stripe secret key in client components or shared modules that get bundled for the browser.
2. Move Stripe secret usage into server-only modules (Server Actions / Route Handlers) guarded with `import "server-only"`.
3. Read the secret only from process.env.STRIPE_SECRET_KEY.
4. Add a brief comment explaining why the key must never ship to the client.
5. Do not invent new payment flows — only relocate and secure the existing secret usage.

Keep changes minimal and production-safe.

References

Impact

Users can be downgraded to HTTP by network attackers, enabling cookie theft and session hijacking on subsequent visits.

Redacted evidence

Location
response headers on https://demo.leakray.dev
Snippet
(header absent)
Header
Strict-Transport-Security

Developer fix

Add HSTS in your edge/hosting config or Next.js headers():

// next.config.ts
const nextConfig = {
  async headers() {
    return [
      {
        source: "/(.*)",
        headers: [
          {
            key: "Strict-Transport-Security",
            value: "max-age=15552000; includeSubDomains",
          },
        ],
      },
    ];
  },
};

AI fix prompt (Cursor / Claude Code / Lovable / Bolt)

Fix a LeakRay High finding: the Next.js site is missing Strict-Transport-Security.

Add an HSTS response header with max-age >= 15552000 and includeSubDomains via next.config.ts headers() or the hosting provider. Do not enable preload unless the operator explicitly asks. Keep the change minimal.

References

01

Zero false-positive noise

Public identifiers like Supabase anon keys and Stripe publishable keys stay informational — only true secrets raise critical findings.

02

Human + AI-ready fixes

Every finding includes real-world impact, a stack-specific code snippet, and a one-click fix prompt for Cursor, Claude Code, Lovable, or Bolt.

03

Strictly passive & safe

Authorized GET/HEAD inspection only with SSRF protection, 2 MB caps, and automatic secret redaction. No exploit payloads or brute-force crawls.