Report preview. All findings belong to a fictional demo project. File paths, lines and logs are fixtures.

Audit report · Lumen Notes (demo)

AUD-1042 · main@a3f9c21

Findings in this report
5
  • 2 Critical
  • 2 High
  • 1 Medium

Counts of what was found — not a score, and not a statement that the rest of the app is fine.

Coverage of this audit
  • Security · 2 findings
  • Database & Supabase · 1 finding
  • Bugs & Logic · 2 findings
Not selected, so not tested — this is not a pass
  • Flows
  • Payments
  • Performance
  • UI/UX
  • Dependencies
  • AI & APIs
Outcome
Completed
Depth
Standard
Commit
a3f9c21
Credits
6 demo credits

Findings

  • What is wrong

    A database admin key is bundled into the public JavaScript. Anyone who opens DevTools can read, change or delete every row.

    Impact: Full database takeover by any visitor. Customer data could be dumped in minutes.

    Evidence (fixture)

    src/lib/db.ts:4–7 · commit a3f9c21

    const db = createClient(URL, "eyJhbGciOi…service_role…")  // fixture
    Expected
    Only the publishable key reaches the browser.
    Observed
    service_role key found in built bundle assets/index-8f2a.js (fixture).

    Recommended fix

    Move privileged calls to a server function, rotate the key, and use the publishable key client-side.

    Repair prompt for your AI builder

    In src/lib/db.ts the service-role key is used in browser code. Move every privileged query into a server-side function, replace the client with the publishable key, and remind me to rotate the leaked key.

    Paste it into Lovable, Claude Code, Cursor or Codex.

3/3

You checked before your users did.

Security, Database & Supabase and Bugs & Logic checked · 5 problems open, 4 of them high or critical

  1. 1Fix the worst problem first. Its prompt is ready.
  2. 2Copy all 5 fix prompts and paste them in one go.
  3. 3Re-test to prove each fix worked.Soon