The Security specialist: who can do what in your app
What ShipRely’s Security specialist checks in your repository: authentication, access control, leaked secrets and server code that trusts the caller.
- Read-only access to your repository
- Every finding with file and line
- Fix prompts for Lovable, Cursor, Claude Code and Bolt
The Security specialist reads your repository and follows every way into your app: pages, API routes, server and edge functions, database calls. For each one it asks who can call it, what it trusts and what it exposes. It reports broken authorization, secrets in browser code, admin checks that only exist in the UI, cross-tenant access and unsafe input handling, each with file, lines, severity, confidence and a fix prompt.
Most security problems in AI-built apps are not clever. They are a door nobody locked because the app’s own buttons never used it: an API route that answers anyone, a key that ended up in the browser, an admin page that is only hidden. The Security specialist is built to find those doors.
What the Security specialist checks
It works through your app the way a reviewer would, starting from every entry point and following the data. Its procedure combines several reviewed checklists of ours: a static review along the OWASP Top 10, an authentication review, end-to-end tenant isolation and Supabase-specific rules.
Authentication
Where identity is established and whether server code validates the session before trusting a user id or role. Password reset, magic link and OAuth callbacks and their redirects. Roles assigned at sign-up.
Authorization and access control
Records loaded by an id from the request without an ownership check, admin routes protected only by a React guard, data of one team reachable by another.
Secrets and tokens
Service keys, payment secrets and AI provider keys in browser code or public build variables, and functions that hand a stored key to their caller.
Input and output handling
SQL or filters built from user input, HTML rendered without sanitizing, open redirects, server-side fetches of user-supplied URLs, uploads without type or size limits.
It also looks at the parts of a Supabase or Lovable-style app where these meet: edge functions that use the admin client, RPC functions anyone can call and webhooks that act without verifying a signature. Business logic beyond that, such as subscription states, belongs to areas that are still in development.
What it found in our test apps
We measure the engine on small synthetic apps with planted defects, plus clean twins that must produce no findings. These are the Security findings from the latest run:
get-ai-key returns the OpenAI API key to any unauthenticated caller
supabase/functions/get-ai-key/index.ts
Service-role Supabase key read from VITE_ variable in browser bundle
src/lib/admin.ts
export-project returns any project and tasks without membership check via service role
supabase/functions/export-project/index.ts
list-trips reads any user's trips by body-supplied userId with service-role client
supabase/functions/list-trips/index.ts
Admin user listing authorized only by client-side app_metadata check
src/pages/AdminUsers.tsx
Payments HMAC signing secret hard-coded in browser code
src/lib/payments.ts
- synthetic test apps in the run of 3 December 2026
- 8
- planted defects found across Security and Database & Supabase
- 9 / 9
- findings on code that is correct
- 0
Eight small apps can’t prove an engine finds everything. They catch regressions before a change reaches you, and we add a case whenever we learn about a new kind of mistake. Details are on the methodology page.
What a finding looks like
Take the first finding above. In the report it is more than a title:
- Severity: critical. Anyone, signed in or not, could get the AI provider key and spend your budget.
- Verification: verified, confidence 96. A separate verification step re-checked the claim against the code.
- Evidence:
supabase/functions/get-ai-key/index.ts, lines 11–21, andsupabase/config.jsonc, lines 5–7, with the excerpt the engine read itself. Secrets in excerpts are masked. - Remediation, acceptance checks and regression tests, turned into fix prompts for Lovable, Cursor, Claude Code, Codex and a general version.
Remove get-ai-key. Add an edge function that verifies the caller with a caller-scoped client getUser, checks the trip is premium and owned by the caller, applies a per-user limit and size cap, and calls OpenAI server-side with OPENAI_API_KEY; change src/lib/ai.ts to call it. Rotate the existing OpenAI key at the provider.
Before any finding is shown, a deterministic check reads the cited lines from your repository snapshot. If the file or the quoted code isn’t there, the evidence is rejected, and a finding without valid evidence never reaches you. How to read a security report explains why severity and confidence are separate.
Which depth to choose
| Depth | Typical time | Use it for |
|---|---|---|
| Quick | about 2–5 minutes | A first look, or a re-check after you applied a fix. A fast pass over the most common, high-impact problems; our benchmark runs use this depth. |
| Standard | about 5–15 minutes | Before a launch or a big release. Broader coverage, with every reported finding verified. |
| Deep | about 15–40 minutes | Apps with teams, roles or payments, where a problem hides in a chain across several files. |
Which depths your plan includes is on the pricing page. Areas you don’t select are reported as not tested, never as passed.
Read up on the patterns
Our guides explain each pattern in plain language: which API keys are safe in the frontend, AI keys in client code, functions that trust a user id from the request body, admin checks that only live in the frontend and open redirects after login. For the database side of the same problems, see the Database & Supabase specialist.
Limits
The Security specialist reads code. It can’t see settings that live only in a dashboard, doesn’t test your running app and doesn’t check third-party packages for known vulnerabilities. Its checks are deepest for React and TypeScript web apps with Supabase. A report is not a certification; it states what was examined and what was not.
Frequently asked questions
Does the Security specialist attack or scan my live website?
No. It reads your repository with read-only access and never sends requests to your app, your API or your database. Nothing in your project is installed, built or executed.
What is the difference between the Security and the Database & Supabase audit?
Security starts from the ways into your app (routes, functions, auth) and follows them into the database. Database & Supabase starts from the schema: migrations, policies, grants and database functions. They overlap on purpose, for example on row level security; a problem both find is merged into one finding.
Which depth should I choose?
Quick for a first look or a re-check after a fix, Standard for broad coverage before a launch, Deep for apps with several roles, teams or payments where problems hide in longer chains across files. Which depths your plan includes is on the pricing page.
Does it check my npm packages for known vulnerabilities?
No. Known-vulnerable packages belong to the Dependencies & Supply Chain area, which is in development. The Security specialist focuses on the code you and your AI tool wrote.
Sources
- 1.OWASP Top 10:2025 — OWASP
- 2.CWE-862: Missing Authorization — MITRE
- 3.CWE-798: Use of Hard-coded Credentials — MITRE
Updated
Find this in your own app
ShipRely reads your repository (read-only), proves each finding with file and line, and gives you a fix prompt to paste into your AI builder.
Run a demo audit- Read-only access to your repository
- Every finding with file and line
- Fix prompts for Lovable, Cursor, Claude Code and Bolt