Free check

Guide · Replit

Replit security check: is your Replit app safe to launch?

Replit Agent builds the whole thing: pages, a server and a database. That is its strength, and it moves the risk: the holes are usually not in the page code but in server routes that answer anyone. Here is how to check yours.

Free instant check, no sign-up. No app at hand? See the report on our demo app, which we broke on purpose.

How a Replit app is put together

A typical Replit app has a server (often Express or Flask) that serves the pages and answers API requests under addresses like /api/users, plus a database only the server talks to. Keys belong in Replit's Secrets, which the server reads as environment variables.

So unlike apps where the browser talks to the database directly, here every protection is code on the server. If a route does not check who is asking, nothing else will.

The five holes we see most often

1. API routes with no login check

The page shows the user list only to admins, but the address behind it, /api/users, answers anyone who opens it. The Agent builds the page and the route together and often protects only the page.

2. Checking the login but not the owner

A route like /api/orders/41 checks that you are signed in, then returns order 41 whoever it belongs to. Change the number and you read someone else's data.

3. Keys written into the code instead of Secrets

A key pasted into a file is visible to everyone who can see the project. If your Repl is public, that is everyone. Keys in the code also end up in forks, version history and anything you publish to GitHub.

4. The server trusts what the browser sends

The upgrade request carries "paid": true, or the profile update carries "role": "admin", and the server saves it. Anyone can send that request by hand.

5. No limits on sign-up, login and paid features

Nothing stops a script from creating thousands of accounts, guessing passwords, or calling your AI feature until the bill arrives.

Check it yourself in ten minutes

  1. List your routes. Ask the Agent: "List every API route in this app and say, for each, whether it checks the signed-in user."
  2. Open them as a stranger. Log out, open a private window and paste each API address into the address bar. Data in the answer means the route is open.
  3. Change the number. Create two accounts. As the first, copy the address of something private; open it as the second.
  4. Search the code for keys. Use the project search for sk-, sk_live, api_key and password. Real values belong in Secrets, not in files.
  5. Check who can see the project. In the Repl's settings, see whether it is public. If it ever was, treat every key that was in the code as leaked.
  6. Watch what the app sends. Press F12, open Network, and sign up or upgrade. Any field you should not be able to choose, such as a price, plan or role, is a problem.

Prompts to paste into Replit Agent

Go through every API route. At the start of each route that is not meant to be public, check that the request comes from a signed-in user and return 401 if not. Admin routes must also check that the user is an admin. Never return password hashes or other users' emails. List every route you changed.
Wherever a route reads, changes or deletes a record by its ID, check on the server that the record belongs to the signed-in user and return 404 otherwise. Take the user from the session, never from a request parameter or the request body.
Find every key, token and password written in the code. Move each one to Replit Secrets and read it from the environment. Then make the server decide prices, plans, roles and payment status itself and ignore those fields if the browser sends them. Add rate limits to sign-up, login, password reset and every route that calls a paid API.

After moving a key to Secrets, create a new one in the provider's dashboard and revoke the old one: the old value is still in the project history.

What the ShipProof check covers

The free check opens your live app the way a stranger would. It finds secret keys in the page code, downloadable source code, unsafe login cookies and missing browser protections.

The full check is the one that matters most for Replit apps. After you prove the app is yours by adding one tag to your home page, it takes the API addresses your pages use, plus common ones like /api/users and /api/admin, and opens each without a login. Routes that answer are reported with the names of the fields a stranger would get, never the values. It also looks for an exposed .env file and .git folder. It sends read-only requests and skips addresses that look like they change something.

Checks 2, 4 and 5 above need real accounts, so test those by hand. No check can prove an app is secure; this one finds the common mistakes that are easiest to exploit.

Check your Replit app now

A grade and the problems in plain language in a few seconds.