Get a second opinionBook
Menu

Base44 ward

Code review for apps built with Base44

Base44 builds a React app with its own database, login and hosting from a prompt, so there is no server or database for you to set up. Every record your app stores lives in an entity, and each entity has security rules that decide who can read and change it.

Base44’s security scan goes first, and I start where it stops: the rules that are allowed but wrong for your app, the functions that bypass them and the pages that rely on them. You get a ranked list, proven on your live app, with a fix prompt you can paste straight back into Base44.

US dollars, no tax added. See both prices.

X-raysrc/pages/Orders.jsx1 fracture
import { base44 } from '@/api/base44Client'

export default function Orders() {
  const [orders, setOrders] = useState([])
  useEffect(() => {
    base44.entities.Order.list().then(setOrders)
  }, [])
  1. Line 6: This runs in the browser with the signed-in user's permissions; if the Order entity's read rule is true, every customer gets every order, whatever the page shows.

Your first opinion

Base44’s security scan is available on all plans, including the free plan, and code vulnerability scanning is on the Builder plan and above. Base44’s docs say you are responsible for your app’s security. Run it and paste what it found; some of its fixes can break pages for signed-out visitors, so I re-test those.

What Base44 usually generates

  • React
  • Vite
  • JavaScript
  • Tailwind CSS
  • Base44 SDK
  • Entities
  • Backend functions
  • Base44 hosting

Reviewed:

Common problems in Base44 apps

Not every one of the Base44 apps I review has all of these; the report says which yours has, where and what to do. Items marked scan are ones Base44’s own scan usually flags too; paste its results when you book and I start there. The rest is where my time goes.

“Slop” is what the AI left behind, not you. Every AI tool skips the same things, whoever is at the keyboard.

  1. Critical

    Entities every user can readscan

    An entity whose read rule is true gives every signed-in user every record. The Base44 SDK runs in the browser, so the rules are the only thing between a curious user and the whole table. I read every rule and say what it lets each kind of user see.

  2. Critical

    Checks done in the page instead of the rules

    An admin page that checks the role in React and then lists the entity. The list call works from the browser console for anyone, with or without the page. I list every rule that has to move from the page into the entity.

  3. High

    Backend functions that run as the service role

    A function using the service role bypasses the entity rules entirely, and Base44 leaves the access checks to the function itself. One that takes a user id from the request body and trusts it is a public endpoint for everyone. I check each function for what it verifies before it acts.

  4. High

    Private fields on public entities

    A cost price, an internal note or an admin flag on an entity that customers can read. Base44 supports rules per field, so the fix is small. I find each field that should not leave the server.

  5. Medium

    Create rules that say who, not what

    A create rule decides who may add a record, not what it contains. Unless field rules lock fields like status and total, a user who may create an order can create one with status paid and total zero, because the page was the only thing setting those values. I say which fields to lock or set in a backend function.

  6. Low

    Whole entities fetched and filtered in React

    Pages that list every record and filter in the browser. Slow once the table grows, and every record sent to the browser is one the user can see in the network tab. The fix moves the filter into the query.

Case history

How this usually happens with Base44

Base44 hides the backend on purpose. You never see a server or a database, only your pages and a list of entities. That is what makes it fast, and it also makes the security rules easy to never open.

The page shows only the right records, so the app looks secure. But the page is not what protects the data; the entity rules are. When a rule is too loose, nothing on screen changes.

When something needs more than a rule allows, Base44 adds a backend function. Backend functions are written in TypeScript and run on Deno, and with the service role they skip every rule. They are part of the review, and I read each one.

X-rayfunctions/markOrderPaid.ts1 fracture
import { createClientFromRequest } from 'npm:@base44/sdk'

Deno.serve(async (req) => {
  const base44 = createClientFromRequest(req)
  const { orderId } = await req.json()
  await base44.asServiceRole.entities.Order.update(orderId, {
    status: 'paid'
  })
  return Response.json({ ok: true })
})
  1. Line 6: asServiceRole skips every entity rule, and nothing here checks who is calling or whether a payment happened. Anyone who can call this function can mark any order as paid.

Sign-in tokens in localStorage

Base44’s docs say “Base44 stores authentication tokens in the browser’s localStorage” and that “HttpOnly cookie storage is not currently available”. That is a documented design choice, not a bug you can fix in your app.

It does change what an injected script can do. Any script that runs in your pages can read the token, so injected HTML or an untrusted third-party script costs more here than on a site that keeps its session in a cookie. The rule that follows: never render user content as HTML.

Security headers you cannot set per app

Content-Security-Policy and Strict-Transport-Security “are not configurable at the individual app level”, according to Base44’s docs. If a security checklist tells you to add those headers, on Base44 you cannot.

What you can set per app is which websites may embed it in an iframe. Allow only the sites you need, and nobody else can wrap your login page in a frame of their own.

Entity rules: rows and fields

Base44 protects data on two levels: Row Level Security decides which records a user can touch, and Field Level Security decides which fields. Each rule is true (all users), false (nobody) or a condition. “Denied reads behave as if the data doesn’t exist” and “Denied writes throw”, so a wrong rule shows up as a missing record or an error, never as a warning.

One exception matters most: base44.asServiceRole “bypasses both RLS and FLS entirely, regardless of how the entity is configured”. A field rule like the one below only holds for code that does not use it.

X-rayEntity rule: only admins write this field1 fracture
"write": {"user_condition": {"role": "admin"}}
  1. Line 1: This rule stops ordinary users from writing the field. A backend function that uses asServiceRole ignores it, so every such function needs its own check.

Self-exam

Five checks for Base44 apps

Five things you can look at today in Base44 apps. If one of them turns something up, fix it or let me look at the rest.

  1. Open the security settings of every entity

    For each data table, check who can read, create, update and delete. A read rule open to all users on anything personal, like orders or messages, is the first thing to fix.

  2. Fix what Base44 already flags

    Base44 warns about rules that look risky and offers a fix. Start there, and remember it can only flag rules that look risky in general, not rules that are wrong for your app.

  3. Sign in as a second test user

    Create a normal account and open every page. If you can see another user's records, even for a moment, a rule is too open.

  4. List your backend functions

    For each one, ask: does it check who is calling before it changes anything? Look hardest at the ones that use the service role.

  5. Look for private fields on entities customers can read

    Cost prices, internal notes and admin flags on an entity customers can read are visible in the browser. Base44 can hide single fields with field-level rules.

Want a longer list your AI can run for you? Get the free self-check prompt.

Pharmacy

Prices

Same fixed prices for Base44, whichever tool wrote the code.

  • Full exam

    Launch Review

    $999

    Launching, raising or selling? Every problem proven, and a signed report you can show.

    Base44 apps: ready in 4 business days. Up to 30k lines (50k: +$299).

    Book Launch Review for Base44

Prices in US dollars, no tax added, paid once by card. A fix list or Aftercare is offered in your report, never sold by card. See everything each tier includes.

Base44 questions

How do I get my Base44 app to you?

GitHub or a zip download both work. Base44 offers them on its Builder plan and up. On a plan without either, email me before you book. With GitHub, connect the app from Base44 and give me read-only access to the repository (I send you a key to paste in). Your backend functions come with the code: they are written in TypeScript, run on Deno and are part of the review. Entities and their security rules stay in Base44, so I also need those; a screenshot of each table's security settings is enough.

Base44 already warns me about security rules. Is that enough?

It is a good start. Base44 flags rules that look risky and offers a fix. I check what that leaves open: rules that are allowed but wrong for your app, backend functions that bypass them and pages that rely on them without knowing it. Critical findings are proven against your live app with test accounts. Paste what it found when you book: anything it already reported does not count toward my refund guarantee, so you only pay for what it missed.

Can I fix things inside Base44?

Yes. Each finding comes with a fix prompt written for Base44. For security rules I also give you the rule itself, so you can read it before it goes live, and I re-check the problems from your report once, free, within 30 days.

Questions about price, privacy or refunds for Base44? All questions and answers.

Built with Base44? Ask me.

A question about your app, the price or how this works? I answer myself, by email. Replies within 2 business days.

I use your email only to answer. Privacy policy.

Find out what Base44 skipped.

Replies within 2 business days.