Skip to content
    ← All news

    Your vibe-coded app has a login screen. Why can strangers still read the data?

    · Zero Agency

    Share

    You built an internal dashboard over a few weekends. It has a login page. Nobody without a password gets past it. So the data is safe, right?

    Not necessarily. And this month a coffee chain found that out in public.

    TL;DR

    • A login screen only hides the page. If the app already sent the data to the browser, anyone who opens the page source can read it.
    • In October, MyBroadband reported that a vibe-coded Bootlegger dashboard did exactly this, exposing contact details linked to 132 locations plus some financial data.
    • The same mistake shows up at scale. UpGuard found 16,326 Supabase databases with tables anyone could read.
    • Four checks catch most of it: view source, query your database with no session, search your bundle for secrets, and call your routes logged out.

    What actually happened with the Bootlegger dashboard?

    The story is almost boring, which is the scary part.

    According to MyBroadband, employees of the South African coffee franchise posted photos of their laptop screens on Instagram. The dashboard's address was visible. Somebody typed it in.

    They saw a login screen. Then they looked at the page source. The app was sending a large amount of data down together with the login page. MyBroadband verified it included names and contact information linked to 132 Bootlegger locations, plus some performance and financial data.

    The outlet reports that the company's CEO appears to have built or encouraged the dashboard using Claude, and that the app, hosted on Railway, was taken down after MyBroadband asked for comment.

    No exploit. No clever attacker. Just "View page source."

    Why doesn't a login page protect my data?

    Because the login page and the data protection are two different things, and the code can easily do one without the other.

    A login screen is a piece of UI. It decides what you see. Real protection happens on the server: before any data leaves, something checks who is asking and only sends what that person is allowed to have.

    When the app fetches everything first and then decides on the client side whether to show it, the browser already has it. The lock works. It is just guarding an empty room.

    This is an easy pattern for a coding agent to produce. You ask for "a dashboard with a login," you get a dashboard with a login, and it looks right in the preview. Nothing in the demo tells you where the check runs.

    Is this a one-off or a pattern?

    It is a pattern, and the numbers are not small.

    UpGuard gathered about 300,000 domains showing signs of Supabase and asked each one for a "users" table. 16,326 databases exposed readable tables. Over half showed signs of personal data. A smaller share included passwords or authentication tokens. TechCrunch covered it on September 25, and Supabase's CISO told the outlet that projects are "secure by default" and that customers control how they configure them.

    Both things can be true. UpGuard's key detail is this: Row Level Security, the Postgres feature that decides which rows each user can read, is on by default for tables made in Supabase's Table Editor. Tables created programmatically through the API, which is how coding agents work, do not get it by default. Supabase's own API security guide says the same and tells you to enable it explicitly for tables created in the SQL Editor or another tool.

    So the agent creates the table, the app works, and the door is open.

    How do I check my own vibe-coded app?

    You do not need a security team for a first pass. You need an hour and a logged-out browser window.

    1. View source on the login page. Open your app in a private window. Do not log in. Right-click, view page source, and open the network tab in developer tools. Reload. Search for things that should never be there: a customer's email, a store name, a revenue number. If you can find real data before logging in, that is your Bootlegger moment.

    2. Ask your database for data with no session. If you use Supabase, the project URL and the anon key are in your front-end code. That is normal; the anon key is meant to be public. The question is what it can read. From a terminal, request a table that holds customer data using only that key. Rows coming back means anyone gets rows back. Repeat for every sensitive table.

    3. Search your bundle for secrets. Build the app and search the JavaScript the browser downloads for your service keys, payment secret keys and model provider keys. In Vite projects, anything prefixed VITE_ ends up there by design. The Vite docs are blunt about it: these variables "should not contain sensitive information such as API keys," because they are bundled into your source code at build time.

    4. Call your routes logged out. Ask your coding agent to list every API route and server function. Call each one with no session. The right answer is a refusal. Pay extra attention to routes added "for testing": seed, reset, make-admin. They tend to survive into production.

    What do I do if one of these fails?

    Fix the order, not the symptom.

    • Move the data fetch behind the check. The server confirms who you are, then sends only your rows.
    • Turn on Row Level Security for every exposed table and write a policy per table. Then repeat check 2 to confirm it actually blocks.
    • Move secrets to a server route or your platform's secrets store, and rotate any key that has ever shipped in the bundle. Rotating matters more than deleting, because old builds and caches remember.

    If a key leaked through a package or a token got stolen, the order you clean up in matters too. We wrote about that in this npm worm cleanup guide.

    You can paste a prompt like this into your coding agent: "List every table and its row-level security policy, every API route and the check that runs before it, and every environment variable read in browser code. Flag anything that returns customer data without a verified session."

    Then read what it gives back. Do not just accept the fix.

    Do I still need an outside review?

    For an internal tool with ten users, these four checks plus a careful read may be enough. For an app that holds customer data, a second pair of eyes is cheap compared with a breach notice.

    That is what we built Liquid for: a review of apps and code built with AI that tells you what to fix first, with the scope and limits written down. A review is not a guarantee of security, and nothing replaces knowing where your own checks run.

    FAQ

    Is the Supabase anon key a secret? No. It is designed to be public and ships in your front end. What protects your data is Row Level Security and the grants behind that key, not hiding the key.

    Does my builder's built-in security scan cover this? It helps, and you should run it. But a scan that checks whether a policy exists cannot always tell whether the policy is right. Check 2 tests the real behaviour.

    Was the Bootlegger leak a hack? Based on MyBroadband's report, no exploit was needed. The data was in the page source for anyone with the address.

    What is the fastest single check? Open your app logged out and view the page source. It takes two minutes and catches the exact mistake behind the Bootlegger leak.

    Share this post