Skip to content

Tools

Permissions checklist for apps built with AI

Tick off the checks that decide whether an app built with AI keeps people to the data and actions their role allows: the server knows who is signed in, refuses what the screen hides and keeps each company's records to itself. Each check says why it matters and how to test it on your own app, for example by asking the api for another company's record by its id. Copy the list as Markdown for your coding agent, download it or print it; your ticks stay in this browser.

By Bohuslav PoláčekChecked

0 of 21 checked

Who is signed in

  • A user id or role that the browser sends can be edited before it is sent, so it proves nothing.

    How to check: Copy a request from the Network tab, change the user id or role in its body or headers and send it again. The server must act as the person who is signed in, or refuse.

  • A sign-in that takes any password, or a switch to another person, is not authentication.

    How to check: Search the code for the stub sign-in, the person switcher and the seeded passwords, then try a seeded account on the production build. It must not get in.

  • A session the server still accepts after sign-out works for anyone who copied it.

    How to check: While signed in, copy a request from the Network tab as cURL, which carries the session. Sign out, run the command in a terminal and expect a refusal (401).

Every action is checked on the server

  • A hidden button or a disabled field is not a rule: anyone with the developer tools or a script can call the api directly.

    How to check: As an admin, copy the request behind an admin-only action, such as deleting a record. Send it signed in as the lowest role and expect a refusal (403), with nothing changed.

  • A rule that lives only in the form, such as a required field or a positive quantity, is skipped by a request sent by hand.

    How to check: Send a save request by hand with a negative quantity, a lower price and an empty required field. Expect a refusal with a message, and nothing saved.

  • The screen offers only the next allowed step, but a request can ask for any step at any time.

    How to check: As the author of a record, send its approve request by hand, then approve a record that is already approved and reject one without a reason. All three must be refused.

  • Asked for a feature, a coding agent often adds the check to the interface only, and a test finds the missing server check before people do.

    How to check: Find the test, or ask your coding agent to write it: for every action, sign in as each role without the permission, call the api and assert a refusal. Make sure it runs in CI.

One company's data stays with it

  • The screen lists only your company's records, but an api that skips the ownership check answers for any id it is given.

    How to check: Signed in to company A, take the id of a company B record and request it directly, for example GET /api/orders/123. Then send an update and a delete for it. Expect 404 or 403 each time, and no change in company B.

  • Filtering in the browser still sends every company's records to it, where the Network tab shows them all.

    How to check: Signed in to company A, load a list, run a search and an export with the Network tab open. No response may contain a company B record, even one the screen does not show.

  • A superuser, a role with BYPASSRLS and a table's owner (unless row-level security is forced) skip the policies, and then they protect nobody.

    How to check: In PostgreSQL, check that the api's role has rolsuper and rolbypassrls false in pg_roles, and that every table with app data has row-level security on, forced where that role owns the table. A query as that role without a signed-in person must return no rows.

  • A file address that works for anyone who has it skips every rule its record has.

    How to check: Copy a file's download address and open it in a private window where you are signed out, then again after the link should have expired. Both must be refused.

What each role can see and change

  • Roles change the data, not only the menu: a column the screen hides still leaks when the response carries it.

    How to check: Sign in as an external role and read the responses in the Network tab for lists, details, notifications, search and the assistant. Internal fields must be missing from the data, not just hidden on screen.

  • If people can edit their own role through the api, every other rule on this list is one request away.

    How to check: As the lowest role, send the request that changes a person's role by hand, with your own id and the admin role. Expect a refusal, and the same role after you sign in again.

Secrets and keys

  • Everything sent to the browser is public, and with Vite every variable whose name starts with VITE_ is compiled into the bundle.

    How to check: Build for production and search the output for the first characters of each key: the database password, service keys, the model key, webhook secrets. Then run a secret scanner over the repository's history.

  • A key that has been in a commit, a log or a chat with a coding agent is leaked, whatever the repository's visibility.

    How to check: In the host's settings, check that test and live keys differ and that each service has its own. Rotate every key that was ever committed, logged or pasted into a chat.

AI, integrations and the MCP server

  • A model key that the page holds can be copied by anyone who opens it.

    How to check: Use the assistant with the Network tab open. Requests go to your own api, never straight to the model's provider, and no response or file contains the model key.

  • An assistant that writes with wider rights than the person skips every permission that person has.

    How to check: Signed in as a role that may not edit a record, ask the assistant to change it. Expect a refusal, or a proposal that the api refuses when you confirm it.

  • An assistant that reads with an admin's rights can repeat another company's records or internal costs in an answer.

    How to check: As an external role, ask the assistant about another client's records and about costs and margins, and call the MCP server's read tools with that person's key. Nothing may come back that their own pages do not show.

  • Reading is the default and writing a separate choice, so a leaked key can do little, and the log shows what it did.

    How to check: Make a read-only key and call a write tool with it: refused. Revoke the key and call again: refused. Then find both calls in the log with the key's owner, the tool and the result.

History and audit

  • A change that writes no entry is a bug, and without the entry nobody can say who did what.

    How to check: Edit, approve and reject a record and change a person's role, then read the history: one entry for each, with the person, the time and the reason for the rejection.

  • A history that the app can rewrite, or that can disagree with the data, proves nothing.

    How to check: As the api's database role, try to update and to delete a history row: both must be refused (revoke update and delete on the table). In a test, make the history write fail and expect the change itself to roll back.

Each check with why it matters and how to test it; your ticks stay in this browser and nothing is sent anywhere.

Why apps built with AI fail here

Coding agents are good at the bugs with well-known rules. In a published test, five coding agents each built the same three apps: none of the fifteen apps had an exploitable SQL injection or cross-site scripting flaw, while improper authorization in the api was among the most common problems, and four of the agents allowed negative orders when the prompt did not rule them out (SecurityWeek, January 2026).

Asked for a feature, an agent often adds the permission check to the interface only. But the browser is not trusted: anything the screen hides, disables or validates is a convenience for the person, and anyone with the developer tools or a script can call the api with any record's id and any action. Security testers call reading a record this way IDOR or BOLA. OWASP ASVS 5.0 asks for the fix in its V8 Authorization chapter from Level 1: every function and every record only with explicit permission, enforced on the server and not in code the browser runs. So every rule the screen shows has to hold again on the server and in the database, and that is what the list checks.

How to use the list

  • Set up two companies with test accounts in each: an admin, the lowest role and, if the app has one, an external role such as a client.
  • Several checks send a request by hand. In the browser's developer tools, right-click a request in the Network tab and copy it as fetch, edit it, and run it in the Console while signed in as the person you are testing. If it carries an Authorization header or a CSRF token, swap in the ones from that person's own requests.
  • Tick a check when you have seen the refusal yourself, not when the code looks right.
  • Copy the list as Markdown and give it to your coding agent: it gets every open check with its test. Ask for a fix and a test in the code for each, so the next feature cannot quietly undo it.
  • Go through it again before go-live, and after every feature that adds an action or a role.

What Meadowstack takes care of, and what stays with your backend, is on the security page.

What it does not cover

It is a checklist, not an audit, a penetration test or proof of compliance. It covers who may see and change what, the failure this page is about. Headers and the Content Security Policy, how uploads are processed, dependencies and personal data have rules of their own on the security page, and OWASP ASVS holds the detailed requirements. Nor does it test your model against prompt injection: the checks on the assistant make sure that a misled assistant can do no more than the person using it.

A ticked list does not make an organisation compliant with NIS2, the GDPR or any other law. Ask a lawyer what applies to you.

Sources

Questions

Why check permissions on the server when the screen already hides the button?

Because the browser is not trusted. Anyone can open the developer tools or write a script and call your api directly, with any record's id and any action, so a rule that lives only in the interface protects nothing. The screen hides what a person cannot do; the server and the database refuse it.

What is the most common permission bug in apps built with AI?

A check that exists only in the interface. In a published test of coding agents, improper authorization in the api was among the most common problems, while none of the apps had an exploitable SQL injection or cross-site scripting flaw. Asking the api for another company's record by its id is the first thing to try.

Can I give the checklist to my coding agent?

Yes. Copy as Markdown or Download Markdown gives you the list with your ticks and, for every open check, why it matters and how to test it. Paste it into Claude Code, Cursor or Codex, ask for a fix and a test for each open check, then run the checks again yourself.

Is anything sent to a server?

No. The checklist is a script on this page: your ticks stay in this browser's local storage, and copying, downloading and printing happen on your device.

Does a fully ticked list mean the app is secure?

No. It means the checks that catch the most common permission failures passed when you ran them. It is not an audit or a penetration test; an app that holds personal or financial data deserves a review against OWASP ASVS by someone who did not build it.

Two ways

Build it yourself, or have it built

  • Build it yourself

    Build your app on the framework

    Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.

    One payment, lifetime updates

    Get the framework
  • Have it built

    Have us build your app

    Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.

    After launch, Care keeps it improving, from €99 a month.

    from €1,990

    Describe your app