Sign in

At least 8 characters.

Already have one?

Free checkBy Yusuf, VXSec

Can one extra word make a user an admin?

I built three demo apps, a bank, a payroll app and a clinic, and signed in to each as a normal user. Saving my profile with one extra word in it let me see everyone's records in all three.

Fastest way to know: save your profile with an extra field like role added, then look at that field. If it changed, you have it.

Only check apps you own or have permission to test.

110K+
views on my bank statement reel
507
people sent the free check from a reel comment
1,395
people follow along on Instagram

Counted from Instagram and my DM log.

What I found

3 of 3

apps let one hidden field change my role

All three apps refused when I tried to open someone else's record. Then I saved my own profile with one field the form never showed.

AppI becameI could see
BankStaffEvery customer's balance and payments
PayrollAdminEvery salary, home address and bank
ClinicDoctorEvery patient's diagnosis and notes

Every person and number in them is made up.

After the fix, each app still answered "ok" to the same save. But the role stayed customer, employee and patient. That's the part people miss. The reply tells you nothing. You judge by what actually changed.

Why AI-built apps end up like this

"Save whatever the request sends" is the shortest code there is, so AI writes it. The form only shows your name and email, so it looks fine. But the server doesn't care what the form showed. It saves what arrives.

On Supabase it's the same story one level down. A policy that lets users update their own row lets them update every column in it, role included.

Check yours in 5 minutes

Do this on a test copy of your app, like a preview or staging deploy, with test accounts. Not on the live one.

  1. Sign in as a normal test user. Not your admin account.
  2. Press F12, open Network, and save your profile once. Right-click the request, Copy, Copy as fetch.
  3. Open Console, paste it, and add one field to the body next to the real ones:
"body": "{\"name\":\"Test\",\"role\":\"admin\"}"

If the body looks like name=Test&email=... instead, add &role=admin the same way. Use names your app really uses. Look at what it sends back about your own user and try role, is_admin, plan, credits, balance.

Press Enter, then look at that field in the app's reply about you, or in your database row. If it changed, that's the hole. Do the same on sign-up and any other "update" button.

Did it change?

The fix is below. If the app holds money, payroll or patient data and you'd rather not touch it live, send it to me. I fix one finding from $150, and you get the price in writing before I start.

Get it fixed

Let your AI run it, free

Your AI runs this check inside your app. Put your email in and your check link shows right here, with a copy in your inbox.

  • Free
  • No card
  • No password

Sent by VXSec, 2967 Dundas St. W. #1754, Toronto, ON M6P 1Z2. [email protected]

Your AI runs it on your side. VXSec never sees your code or data, only which check ran, when, and how many holes it found. Use a test copy for checks that change data. Nothing gets fixed until you say yes.

How to fix it

Never save the whole request. Name the fields a user may change and drop everything else.

// before: whatever the browser sends gets saved
await db.user.update({ where: { id: user.id }, data: req.body });

// after: only these three can ever change here
const { name, bio, avatar } = req.body;
await db.user.update({ where: { id: user.id }, data: { name, bio, avatar } });

On Supabase, limit the columns users can write. I tested this on Supabase's own Postgres 17 image. Before, a signed-in user set their own role to admin. After, "permission denied", while changing a name still worked.

revoke update on public.profiles from anon, authenticated;
grant update (name, bio, avatar_url) on public.profiles to authenticated;

Safer still, keep roles, plans and balances in their own table that only your server writes.

What still catches people

  • A list of banned fields. Ban role and someone sends is_admin. List what's allowed instead.
  • Admin checks that only run in the page. Check the role on the server, from your own database, every time.
  • Sign-up. People fix the profile save and forget that sign-up saves a user too.

Questions

Somebody built my app for me. What do I ask them?

Three things. Does the server only accept the fields on the form? Is every admin page checked on the server? Can you show me this test run on our app?

The save said ok. Did it pass?

Not yet. An app that ignores the field can still say ok. Look at the field itself.

Can I test someone else's app?

Only with their written permission.

Before you launch

This is one check. Launch Gate runs six in one go on a test copy of your app, this one included, and gives you one page of results with proof. Members get it inside their own AI.

VXSec Membership

$19a month, or $190 a year

  • Workspace Setup
  • AI Reach Map
  • Agent Brakes
  • Launch Gate
  • Leaver Check
  • Every new helper, the day it's out
Join VXSec

Rather have it done for you? I fix it $150 and up, 20% off for members · Launch Review $297 once, I check and fix the top 3 · Built for you $1,500 a month and up

Want to practise on an app built to be broken first? Open the practice lab.