SAMPLE What a founder gets from the $49 App Audit. Built from Lumen, an invented Next.js and Supabase notes app written by Nordik with problems planted on purpose. Not a customer and not a real company. The report text is exactly what the audit wrote.

The Audited by Nordik seal

App Audit report: lumen-demo-audit-repo

What to fix first

How bad is it?

Serious.

Someone could read or change any of your data through your database admin key, read or change data in your database that is not theirs, or send fake values, like another user's id, and have your app believe them.

What to do first: If real people use your app now, fix these 5 today. If you cannot, pause the app until you can. If it is not live yet, fix them before you launch.

  1. 1Your database admin key is used in the wrong place (item 1)Fix today
  2. 2Any signed-in user can reach every row (item 2)Fix today
  3. 3Your app trusts data the visitor can change (item 3)Fix today
  4. 4Someone can see other people's data (item 4)Fix today
  5. 5Your database lets the wrong people read or change data (item 5)Fix today

All of it: 11 things to fix below, worst first for your users' data and money: 5 to fix today, 1 to fix this week, 3 to fix soon and 2 worth a look.

  • Item 11 updates all your old packages with one prompt.
  • Package updates come last even when marked Fix this week: the warning about them is public, but we did not check whether your app uses the weak part.
  • 1 more thing needs a closer look first, and each one says why.

How to use each item:

  1. Paste its fix prompt into the AI coding tool you build with.
  2. Then open "Show me how to check / step by step" under it for the check (the AI coding tool you build with answers Pass or Fail, but that is the AI coding tool you build with judging the fix it just made, not a result from us: only a new audit from us can verify the fix) and any steps you do yourself.
  3. Each item says how long it usually takes: a rough guess from the kind of fix, not a promise.

Has anyone done this yet? This report cannot tell. Your app's visit records (logs) can.

Show me how to check / step by step

Where to look: at your hosting service, open its Logs page; in Supabase, open your project, then Logs in the left menu. If they are hard to read, paste this into the AI coding tool you build with and your AI coding tool walks you through them:

A security audit found problems in my app that could let strangers reach other people's data. Help me check whether anyone has done this already. Do not change anything. Tell me step by step, button by button, how to open my app's visit records (logs) in my hosting service and Supabase for the last 30 days, and what to look for, in plain words. Then tell me what you found, if you can see them.
Fix today1. Your database admin key is used in the wrong place

What this means for you:

The admin key to your database can read and change everything, and it skips all of your database rules. Used in the wrong place, it lets anyone who reaches that part of your app read or change any of your data. It shows up in 5 places in your code. The prompt names each one.

How urgent:
Fix today
How long it takes:
usually about 30 minutes (a code change in several files, then the check)
Fix prompt: Paste this into the AI coding tool you build with as-is. You don't need to understand it.
A security audit of my app found a problem. Please fix it. In `app/api/export/route.ts` (around line 20), `app/api/admin/users/route.ts` (around lines 10 and 13) and `app/api/notes/[id]/route.ts` (around line 34) the code uses the Supabase admin key (the service role key), which skips every database rule, to answer requests from visitors. Change this code to use the normal Supabase client with the signed-in user's session, so the database rules apply. If the code does not check who is signed in, add that check first and turn away anyone who is not allowed. Keep the admin key only for trusted jobs on the server. Also, in `app/api/notes/[id]/route.ts` (around line 11) the security audit found the problem described here. Change the code so the problem is gone. What the audit saw there: in `app/api/notes/[id]/route.ts` at line 11 the code reads: "export async function GET(_request: Request, { params }: { params: { id: string } }) {" / "const supabase = createClient();". Also scope every read and write here to the signed-in owner (user_id = auth.uid() or the equivalent), both in the database rules (RLS) and in the server query. An owner may change only the fields they should edit, never status, role, payment or owner fields. Any linked row the request names (such as a client, a child or a booking) must belong to the signed-in owner too, in the database rules as well as in the code. Any error you send back must be a short general message, never the raw error text. Do not add a SECURITY DEFINER database function. A database rule you add must not let users change status, role, payment or owner fields, or link a row to data of another user. Keep the behaviour for normal users the same, and tell me in plain words what you changed.
Show me how to check / step by step
How to check it's fixed: Paste this into the AI coding tool you build with after the fix:
Check the fix you just made for: your database admin key is used in the wrong place. For `app/api/export/route.ts` (around line 20), `app/api/admin/users/route.ts` (around lines 10 and 13) and `app/api/notes/[id]/route.ts` (around line 34), tell me whether someone who is not signed in could still get data back, and whether that code still uses the database admin key to answer visitors. Also, read the code in `app/api/notes/[id]/route.ts` (around line 11). Tell me in plain words whether the problem the audit found is gone. What the audit saw: in `app/api/notes/[id]/route.ts` at line 11 the code reads: "export async function GET(_request: Request, { params }: { params: { id: string } }) {" / "const supabase = createClient();". Fail only if this flaw is still there at that code: the weak spot the audit flagged is still there. That is the code the audit looked at, not the problem itself: a correct fix may leave that line as it is. Change nothing. Answer Pass or Fail for each place, with one plain sentence why.

Stuck on this fix? Ask Nordik's AI about this item: say what your AI coding tool did or showed, and get a short answer for this fix (up to 3 questions). In your own report this is a link to that item's help page.

This finding is wrong? Tell us in one email, within 14 days of the release, and your payment is refunded in full.

Fix today2. Any signed-in user can reach every row

What this means for you:

A database rule only asks that someone is signed in. Any signed-in user can then read or change every row, whoever it belongs to.

How urgent:
Fix today
How long it takes:
usually about 15 minutes (a change to a database rule, then the check)
Fix prompt: Paste this into the AI coding tool you build with as-is. You don't need to understand it.
A security audit of my app found a problem. Please fix it. In `supabase/migrations/0001_init.sql` (around line 115) a database rule only checks that someone is signed in. Add a check that the row belongs to the signed-in user, or that the user is allowed to see it, and keep the app working. Any error you send back must be a short general message, never the raw error text. Do not add a SECURITY DEFINER database function. A database rule you add must not let users change status, role, payment or owner fields, or link a row to data of another user. Keep the behaviour for normal users the same, and tell me in plain words what you changed.
Show me how to check / step by step
How to check it's fixed: Paste this into the AI coding tool you build with after the fix:
Check the fix you just made for: any signed-in user can reach every row. Look at the database rule in `supabase/migrations/0001_init.sql` (around line 115). Tell me whether a signed-in user could still read or change a row that belongs to someone else. Change nothing. Answer Pass or Fail, with one plain sentence why.
  • Details for a developer: C004, C015 in the technical report

Stuck on this fix? Ask Nordik's AI about this item: say what your AI coding tool did or showed, and get a short answer for this fix (up to 3 questions). In your own report this is a link to that item's help page.

This finding is wrong? Tell us in one email, within 14 days of the release, and your payment is refunded in full.

Fix today3. Your app trusts data the visitor can change

What this means for you:

Your app takes a value from the visitor, like a user id, a price or a role, and uses it as if it were true. Someone could send a fake value and get things they should not. It shows up in 4 places in your code. The prompt names each one.

How urgent:
Fix today
How long it takes:
usually about 30 minutes (a code change in several files, then the check)
Fix prompt: Paste this into the AI coding tool you build with as-is. You don't need to understand it.
A security audit of my app found a problem. Please fix it. In `app/api/checkout/route.ts` (around line 36) and `app/api/notes/route.ts` (around line 47) the code uses a value sent by the visitor (such as a user id, a client id, a role or a price) as if it were true. Take that value from the signed-in user's session or from the database instead, and ignore what the visitor sent. If the visitor picks a record, check that it belongs to them first. At `app/api/notes/route.ts` (around line 47), the audit saw: in `app/api/notes/route.ts` at line 47 the code reads: "workspace_id: input.workspaceId," / "author_id: input.authorId ?? user.id," / "title: input.title,". Also, in `app/api/webhooks/stripe/route.ts` (around line 21) the security audit found the problem described here. Change the code so the problem is gone. What the audit saw there: in `app/api/webhooks/stripe/route.ts` at line 21 the code reads: "if (event.type === 'checko…(26 chars)') {" / "const session = event.data.object as Stripe.Checkout.Session;". Also, in `supabase/migrations/0001_init.sql` (around line 132) a database table lets the wrong people read or change its rows (its row level security policies are missing or too loose). Change the rules for this table so each signed-in user can only read and change their own rows, and keep the app working for them. What the audit saw there: in `supabase/migrations/0001_init.sql` at line 132 the code reads: ` create policy "Members can create notes" ` / "on public.notes for insert". Any error you send back must be a short general message, never the raw error text. Do not add a SECURITY DEFINER database function. A database rule you add must not let users change status, role, payment or owner fields, or link a row to data of another user. Keep the behaviour for normal users the same, and tell me in plain words what you changed.
Show me how to check / step by step
How to check it's fixed: Paste this into the AI coding tool you build with after the fix:
Check the fix you just made for: your app trusts data the visitor can change. Read the code in `app/api/checkout/route.ts` (around line 36) and `app/api/notes/route.ts` (around line 47). Tell me where the value now comes from. It should come from the sign-in or the database, not from what the visitor sent. At `app/api/notes/route.ts` (around line 47), the audit saw: in `app/api/notes/route.ts` at line 47 the code reads: "workspace_id: input.workspaceId," / "author_id: input.authorId ?? user.id," / "title: input.title,". Fail for this place only if this flaw is still there at that code: your app trusts data the visitor can change. That is the code the audit looked at, not the problem itself: a correct fix may leave that line as it is. Also, read the code in `app/api/webhooks/stripe/route.ts` (around line 21). Tell me in plain words whether the problem the audit found is gone. What the audit saw: in `app/api/webhooks/stripe/route.ts` at line 21 the code reads: "if (event.type === 'checko…(26 chars)') {" / "const session = event.data.object as Stripe.Checkout.Session;". Fail only if this flaw is still there at that code: the weak spot the audit flagged is still there. That is the code the audit looked at, not the problem itself: a correct fix may leave that line as it is. Also, look at the database rules for the table in `supabase/migrations/0001_init.sql` (around line 132). Tell me whether someone who is not signed in, or another signed-in user, could still read or change rows that are not theirs. What the audit saw: in `supabase/migrations/0001_init.sql` at line 132 the code reads: ` create policy "Members can create notes" ` / "on public.notes for insert". Fail only if this flaw is still there at that code: your database lets the wrong people read or change data. That is the code the audit looked at, not the problem itself: a correct fix may leave that line as it is. Change nothing. Answer Pass or Fail for each place, with one plain sentence why.

Stuck on this fix? Ask Nordik's AI about this item: say what your AI coding tool did or showed, and get a short answer for this fix (up to 3 questions). In your own report this is a link to that item's help page.

This finding is wrong? Tell us in one email, within 14 days of the release, and your payment is refunded in full.

Fix today4. Someone can see other people's data

What this means for you:

Your app takes a record number from the link and does not check who owns it. Someone could change the number and see or change another person's data. It shows up in 2 places in your code. The prompt names each one.

How urgent:
Fix today
How long it takes:
usually about 30 minutes (a code change in several files, then the check)
Fix prompt: Paste this into the AI coding tool you build with as-is. You don't need to understand it.
A security audit of my app found a problem. Please fix it. In `app/api/checkout/route.ts` (around line 30) a record is read or changed by the id in the request, without checking who owns it. Before reading or changing it, check that the record belongs to the signed-in user (for example, filter by the user's id), and stop if it does not. What the audit saw: in `app/api/checkout/route.ts` at line 30 the code reads: "customer_email: user.email," / "client_reference_id: input.workspaceId," / ` line_items: [ `. Also, in `app/api/webhooks/stripe/route.ts` (around line 23) the security audit found the problem described here. Change the code so the problem is gone. What the audit saw there: in `app/api/webhooks/stripe/route.ts` at line 23 the code reads: "const session = event.data.object as Stripe.Checkout.Session;" / "await admin.from('subscriptions').upsert({" / "workspace_id: session.client_reference_id,". Any error you send back must be a short general message, never the raw error text. Do not add a SECURITY DEFINER database function. A database rule you add must not let users change status, role, payment or owner fields, or link a row to data of another user. Keep the behaviour for normal users the same, and tell me in plain words what you changed.
Show me how to check / step by step
How to check it's fixed: Paste this into the AI coding tool you build with after the fix:
Check the fix you just made for: someone can see other people's data. Read the code in `app/api/checkout/route.ts` (around line 30). Tell me whether a signed-in user could still open or change a record that belongs to someone else, for example by changing the number in the link. What the audit saw: in `app/api/checkout/route.ts` at line 30 the code reads: "customer_email: user.email," / "client_reference_id: input.workspaceId," / ` line_items: [ `. Fail only if this flaw is still there at that code: someone can see other people's data. That is the code the audit looked at, not the problem itself: a correct fix may leave that line as it is. Also, read the code in `app/api/webhooks/stripe/route.ts` (around line 23). Tell me in plain words whether the problem the audit found is gone. What the audit saw: in `app/api/webhooks/stripe/route.ts` at line 23 the code reads: "const session = event.data.object as Stripe.Checkout.Session;" / "await admin.from('subscriptions').upsert({" / "workspace_id: session.client_reference_id,". Fail only if this flaw is still there at that code: the weak spot the audit flagged is still there. That is the code the audit looked at, not the problem itself: a correct fix may leave that line as it is. Change nothing. Answer Pass or Fail for each place, with one plain sentence why.
  • Details for a developer: C029, C033 in the technical report

Stuck on this fix? Ask Nordik's AI about this item: say what your AI coding tool did or showed, and get a short answer for this fix (up to 3 questions). In your own report this is a link to that item's help page.

This finding is wrong? Tell us in one email, within 14 days of the release, and your payment is refunded in full.

Fix today5. Your database lets the wrong people read or change data

What this means for you:

Your database has rules about who may see or change each saved record, such as a customer or an invoice. Here those rules are missing or too loose, so someone could see or change records that are not theirs. It shows up in 2 places in your code. The prompt names each one.

How urgent:
Fix today
How long it takes:
usually about 15 minutes (a change to a database rule, then the check)
Fix prompt: Paste this into the AI coding tool you build with as-is. You don't need to understand it.
A security audit of my app found a problem. Please fix it. In `supabase/migrations/0002_billing_and_audit.sql` (around line 18) and `supabase/migrations/0001_init.sql` (around line 136) a database table has no row level security (RLS) rules. Turn RLS on for this table and add a rule for each way the app really uses it. If its rows belong to users, let each signed-in user read and change only their own rows. If it is meant to be shared or public, allow reading only, and no changes for visitors. Keep the app working. At `supabase/migrations/0001_init.sql` (around line 136), the audit saw: in `supabase/migrations/0001_init.sql` at line 136 the code reads: ` create policy "Authors can update their notes" ` / "on public.notes for update". Any error you send back must be a short general message, never the raw error text. Do not add a SECURITY DEFINER database function. A database rule you add must not let users change status, role, payment or owner fields, or link a row to data of another user. Keep the behaviour for normal users the same, and tell me in plain words what you changed.
Show me how to check / step by step
How to check it's fixed: Paste this into the AI coding tool you build with after the fix:
Check the fix you just made for: your database lets the wrong people read or change data. Look at the database rules for the table in `supabase/migrations/0002_billing_and_audit.sql` (around line 18) and `supabase/migrations/0001_init.sql` (around line 136). Tell me whether someone who is not signed in, or another signed-in user, could still read or change rows that are not theirs. At `supabase/migrations/0001_init.sql` (around line 136), the audit saw: in `supabase/migrations/0001_init.sql` at line 136 the code reads: ` create policy "Authors can update their notes" ` / "on public.notes for update". Fail for this place only if this flaw is still there at that code: your database lets the wrong people read or change data. That is the code the audit looked at, not the problem itself: a correct fix may leave that line as it is. Change nothing. Answer Pass or Fail for each place, with one plain sentence why.
  • Details for a developer: C016, C030 in the technical report

Stuck on this fix? Ask Nordik's AI about this item: say what your AI coding tool did or showed, and get a short answer for this fix (up to 3 questions). In your own report this is a link to that item's help page.

This finding is wrong? Tell us in one email, within 14 days of the release, and your payment is refunded in full.

Fix soon6. Your app can send visitors on to any website

What this means for you:

A link in your app takes the next address from the link itself. Someone could send your users a link that looks like yours but lands on a fake site.

How urgent:
Fix soon
How long it takes:
usually about 15 minutes (a code change in one file, then the check)
Fix prompt: Paste this into the AI coding tool you build with as-is. You don't need to understand it.
A security audit of my app found a problem. Please fix it. In `app/auth/callback/route.ts` (around line 14) the address the app sends visitors on to comes from the link itself. Only allow addresses inside this app, or a fixed list of allowed sites, and go to the home page for anything else. Keep the behaviour for normal users the same, and tell me in plain words what you changed.
Show me how to check / step by step
How to check it's fixed: Paste this into the AI coding tool you build with after the fix:
Check the fix you just made for: your app can send visitors on to any website. Read the code in `app/auth/callback/route.ts` (around line 14). Tell me whether a link can still send visitors on to another website. It should only go to pages inside the app. Change nothing. Answer Pass or Fail, with one plain sentence why.
  • Details for a developer: C002 in the technical report

Stuck on this fix? Ask Nordik's AI about this item: say what your AI coding tool did or showed, and get a short answer for this fix (up to 3 questions). In your own report this is a link to that item's help page.

This finding is wrong? Tell us in one email, within 14 days of the release, and your payment is refunded in full.

More things to fix (items 7 to 12). Each one has the same parts as the items above, with the same number: open it for what it means, the fix prompt, how to check it and any steps you do yourself. Paste a fix prompt the same way.

Fix soon7. A secret falls back to a weak built-in value

What this means for you:

Your app uses a built-in fallback (like "changeme") when the real secret is not set. If the setting is ever missing, anyone could use the fallback to sign in or sign tokens. We saw only the fallback in the code, not a real key.

How urgent:
Fix soon
How long it takes:
usually about 15 minutes (a code change in one file, then the check)
Fix prompt: Paste this into the AI coding tool you build with as-is. You don't need to understand it.
A security audit of my app found a problem. Please fix it. In `lib/stripe.ts` (around line 4) a secret setting has a fallback value written in the code (for example `SECRET || "changeme"`). Remove the fallback so the app refuses to start when the secret is not set, and make sure a long random value is set in the project's secret settings. Keep the behaviour for normal users the same, and tell me in plain words what you changed.
Show me how to check / step by step
How to check it's fixed: Paste this into the AI coding tool you build with after the fix:
Check the fix you just made for: a secret falls back to a weak built-in value. Read the code in `lib/stripe.ts` (around line 4). Tell me whether the secret still has a fallback value in the code, and whether the app now stops when the secret is not set. Change nothing. Answer Pass or Fail, with one plain sentence why.
  • Details for a developer: C003 in the technical report

Stuck on this fix? Ask Nordik's AI about this item: say what your AI coding tool did or showed, and get a short answer for this fix (up to 3 questions). In your own report this is a link to that item's help page.

This finding is wrong? Tell us in one email, within 14 days of the release, and your payment is refunded in full.

Fix soon8. A setting makes your app easier to break into

What this means for you:

One of your app's settings is looser than it should be. On its own it may do no harm, but it makes other problems easier to use against you.

How urgent:
Fix soon
How long it takes:
usually about 5 minutes (one settings change, then the check)
Fix prompt: Paste this into the AI coding tool you build with as-is. You don't need to understand it.
A security audit of my app found a problem. Please fix it. In `app/api/public/notes/[id]/route.ts` (around line 17) a security setting is looser than it should be (for example a debug mode left on, every other website allowed to call the app, or missing safety settings for the browser). Tighten it for the live app and keep the app working. Keep the behaviour for normal users the same, and tell me in plain words what you changed.
Show me how to check / step by step
How to check it's fixed: Paste this into the AI coding tool you build with after the fix:
Check the fix you just made for: a setting makes your app easier to break into. Tell me how the setting in `app/api/public/notes/[id]/route.ts` (around line 17) is set now. It should be off, or limited to my own site. Change nothing. Answer Pass or Fail, with one plain sentence why.
  • Details for a developer: C001, C013 in the technical report

Stuck on this fix? Ask Nordik's AI about this item: say what your AI coding tool did or showed, and get a short answer for this fix (up to 3 questions). In your own report this is a link to that item's help page.

This finding is wrong? Tell us in one email, within 14 days of the release, and your payment is refunded in full.

Worth a look9. Error messages show visitors how your app works inside

What this means for you:

When something goes wrong, your app sends the full error text to the visitor. That can show details about your database that help someone break in.

How urgent:
Worth a look
How long it takes:
usually about 15 minutes (a code change in one file, then the check)
Fix prompt: Paste this into the AI coding tool you build with as-is. You don't need to understand it.
A security audit of my app found a problem. Please fix it. In `app/api/webhooks/stripe/route.ts` (around line 16) the app sends the full error text back to the visitor when something fails. Send a short general message instead (such as "Something went wrong"), and keep the full error only in the server logs. Keep the behaviour for normal users the same, and tell me in plain words what you changed.
Show me how to check / step by step
How to check it's fixed: Paste this into the AI coding tool you build with after the fix:
Check the fix you just made for: error messages show visitors how your app works inside. Find what a visitor sees when the request in `app/api/webhooks/stripe/route.ts` (around line 16) fails. Tell me if it is a short general message or the full error text. Change nothing. Answer Pass or Fail, with one plain sentence why.
  • Details for a developer: C019 in the technical report

Stuck on this fix? Ask Nordik's AI about this item: say what your AI coding tool did or showed, and get a short answer for this fix (up to 3 questions). In your own report this is a link to that item's help page.

This finding is wrong? Tell us in one email, within 14 days of the release, and your payment is refunded in full.

Worth a look10. Your app does not turn on the browser's safety settings

What this means for you:

Browsers have safety settings a site can turn on, for example to stop other sites from showing your pages inside theirs. Your app does not turn them on.

How urgent:
Worth a look
How long it takes:
usually about 5 minutes (one settings change, then the check)
Fix prompt: Paste this into the AI coding tool you build with as-is. You don't need to understand it.
A security audit of my app found a problem. Please fix it. In `next.config.mjs` (around line 2) the app sets no security headers. Add the usual ones for every page (Content-Security-Policy, X-Frame-Options or frame-ancestors, X-Content-Type-Options, Referrer-Policy, Strict-Transport-Security), and keep the app working. Keep the behaviour for normal users the same, and tell me in plain words what you changed.
Show me how to check / step by step
How to check it's fixed: Paste this into the AI coding tool you build with after the fix:
Check the fix you just made for: your app does not turn on the browser's safety settings. List the safety settings (security headers) my pages send now. Tell me if any of the ones the fix added are missing. Change nothing. Answer Pass or Fail, with one plain sentence why.
  • Details for a developer: C020 in the technical report

Stuck on this fix? Ask Nordik's AI about this item: say what your AI coding tool did or showed, and get a short answer for this fix (up to 3 questions). In your own report this is a link to that item's help page.

This finding is wrong? Tell us in one email, within 14 days of the release, and your payment is refunded in full.

Fix this week11. Some packages your app uses have known problems

What this means for you:

Your app uses old versions of 5 packages (next, zod, qs, @supabase/auth-js and cookie) that have public warnings about weak spots. We did not check whether your app uses the weak parts. One prompt updates them all.

How urgent:
Fix this week
How long it takes:
usually an hour or more (package updates, then a click through your whole app)
Fix prompt: Paste this into the AI coding tool you build with as-is. You don't need to understand it.
A security audit of my app found a problem. Please fix it. In `package-lock.json` the app uses package versions that have public security warnings. The lowest versions that clear the warnings: next 15.5.29, zod 4.6.6, qs 6.16.1, @supabase/auth-js 2.70.0, cookie 0.7.0. Install the lowest version listed for each package and stay on the major version the app uses now: do not move to a newer major release (for example from version 15 to 16) only because it exists. Only next 14.2.3 to 15.5.29 and zod 3.23.8 to 4.6.6 need a new major version, because no fixed version exists in the major version the app uses now: follow their official migration guide and change the code that uses them. Development-only tools with warnings (such as the build tool) count too: when no fixed version exists in their current major, move them to the lowest fixed major and keep the build working. Do not swap a package for a different one. When you are done, check the packages for security warnings again and make sure none of these, and no new ones, are left. Make sure the lockfile is updated and the app still builds and works. Keep the behaviour for normal users the same, and tell me in plain words what you changed.
Show me how to check / step by step
How to check it's fixed: Also click through your app yourself to see that it still works. Paste this into the AI coding tool you build with after the fix:
Check the fix you just made for: some packages your app uses have known problems. Tell me which version of each package the app uses now. Each should be at least: next 15.5.29, zod 4.6.6, qs 6.16.1, @supabase/auth-js 2.70.0, cookie 0.7.0. Then make sure the app still builds. Change nothing. Answer Pass or Fail, with one plain sentence why.

Stuck on this fix? Ask Nordik's AI about this item: say what your AI coding tool did or showed, and get a short answer for this fix (up to 3 questions). In your own report this is a link to that item's help page.

This finding is wrong? Tell us in one email, within 14 days of the release, and your payment is refunded in full.

To check12. To check: your database admin key is used in the wrong place

What this means for you:

We could not settle this one from the code alone. If it is real, this is what it means. The admin key to your database can read and change everything, and it skips all of your database rules. Used in the wrong place, it lets anyone who reaches that part of your app read or change any of your data.

How urgent:
Fix this week
How long it takes:
usually about 15 minutes (a code change in one file, then the check)
Fix prompt: Paste this into the AI coding tool you build with as-is. You don't need to understand it.
A security audit of my app found a problem. Please fix it. First check whether this is a real problem in my code. If it is not, tell me why and change nothing. In `components/WorkspaceStats.tsx` (around line 11) the code uses the Supabase admin key (the service role key), which skips every database rule, to answer requests from visitors. Change this code to use the normal Supabase client with the signed-in user's session, so the database rules apply. If the code does not check who is signed in, add that check first and turn away anyone who is not allowed. Keep the admin key only for trusted jobs on the server. Also scope every read and write here to the signed-in owner (user_id = auth.uid() or the equivalent), both in the database rules (RLS) and in the server query. An owner may change only the fields they should edit, never status, role, payment or owner fields. Any linked row the request names (such as a client, a child or a booking) must belong to the signed-in owner too, in the database rules as well as in the code. Any error you send back must be a short general message, never the raw error text. Do not add a SECURITY DEFINER database function. A database rule you add must not let users change status, role, payment or owner fields, or link a row to data of another user. Keep the behaviour for normal users the same, and tell me in plain words what you changed.
Show me how to check / step by step
How to check it's fixed: Paste this into the AI coding tool you build with after the fix:
Read the code and tell me whether this possible problem is still there: your database admin key is used in the wrong place. Do not judge any fix, and this is you reading the code, not a test of the running app. For `components/WorkspaceStats.tsx` (around line 11), tell me whether someone who is not signed in could still get data back, and whether that code still uses the database admin key to answer visitors. Pass = the problem is gone or not present; Fail = it is still there. Change nothing. Answer Pass or Fail, with one plain sentence why.
  • Details for a developer: C014 in the technical report

Stuck on this fix? Ask Nordik's AI about this item: say what your AI coding tool did or showed, and get a short answer for this fix (up to 3 questions). In your own report this is a link to that item's help page.

What we checked, and who checked it

  • What we read: your app's code, at one point in time. We did not run your app or look at your live database, hosting or accounts.
  • Who checked it: An AI checked each problem in your code against your code, and a second AI checked each serious one again. Problems in your packages were matched to a public list of known flaws, not checked by an AI. No person read this report before it was released.
  • What is next: fix the items above, starting with item 1. Then a new audit of your code can check that the fixes worked.
  • The technical report: it comes with this one and keeps every detail the audit recorded, for a developer or for your AI tool.

Get this report for your app.

$49, one time, for one app. Report in 48 hours or you're not charged.

With the report: checked fixes for up to 10 critical and high problems a code change can fix, and one free re-check after you fix.

Your card is charged only when your report is delivered. The audit is done by AI, and a second AI checks each serious finding in your code. It is a code audit, not a penetration test.