What is IDOR?
Published 21 October 2026 · 5 min read
IDOR stands for Insecure Direct Object Reference. In plain English: your app points to each record by an ID — order 124, invoice 125, user 126 — and it forgets to check whether that record actually belongs to the person asking for it. So someone changes the number in a request from their own ID to yours, and the app happily hands over your data.
It is one of the simplest attacks there is. No special tools, no hacking skills, no password cracking. Just changing a number. And it is one of the most common serious flaws in apps built on no-code and AI platforms — which is exactly why it is worth ten minutes of your time.
How the attack actually works
Most apps store your data in rows that each have an ID. When you open your order history, your browser quietly asks the server something like “give me order 124.” The server looks it up and sends it back. All normal.
The problem starts when the server only checks that you are logged in — not that order 124 is yours. If an attacker is logged into their own account and simply changes the request to ask for order 125, a vulnerable app returns it. Then 126. Then 127. With a tiny script, they can walk through every record in your database in minutes.
You will sometimes see this called BOLA (Broken Object Level Authorization). Same flaw, newer name — the API world adopted BOLA because so many of these bugs now live in APIs rather than web page URLs. IDOR and BOLA describe the same mistake: no ownership check on the object you are asking for.
A concrete example
Say you built a client portal where customers download their invoices. A customer clicks “View invoice” and the address bar shows:
/api/invoices/4820
Invoice 4820 is theirs, so this is fine. But out of curiosity they edit it to:
/api/invoices/4819
If the invoice before theirs loads — a different company’s name, amount, and billing address — you have an IDOR. Every invoice in your system is now one keystroke away from anyone with an account. The same pattern applies to messages, profiles, uploaded files, support tickets, and anything else your app stores per user.
Why no-code and AI-built apps are so prone to it
When you build on a no-code platform or have an AI assistant generate your backend, a lot of plumbing gets created for you automatically. That is the whole appeal. But it cuts both ways:
- Auto-generated APIs expose everything. Many platforms create a tidy API endpoint for every data table the moment you make it. Those endpoints work out of the box — but “works” just means data comes back, not that the right person is asking.
- Ownership checks are the one thing that can’t be guessed. The platform knows your data’s shape, but it can’t know your business rules — who should see what. That logic has to be set deliberately, and it is easy to skip when everything already seems to function.
- AI generates the happy path. Ask an AI builder for “a page to view my orders” and it will produce exactly that. It rarely volunteers the invisible rule that other people’s orders must stay hidden — because nothing on screen looks broken when that rule is missing.
- Logged-in feels like locked-down. It is natural to assume a login screen protects everything behind it. It does not. Authentication proves who you are; authorization decides what you are allowed to touch. IDOR is a failure of the second one.
How to think about preventing it
The core fix is a single idea: every request for a record must check that the record belongs to the person making the request. Not just “are they logged in” — “is this theirs.” A few practical ways to get there:
- Enforce ownership on the server. Your data tables should have rules so a query can only ever return rows tied to the current user. Most no-code platforms have a settings panel for this — often called row-level permissions, record rules, or access policies. Find it and turn it on for every table that holds user data.
- Never rely on hiding the ID. A guessable number is the easy case, but switching to long random IDs is not a real fix — it just makes guessing harder. The ownership check is what actually protects you.
- Test it yourself. Create two test accounts. Log in as the first, open one of its records, and note the ID in the URL or request. Log in as the second and try to load the first account’s ID. If you can see it, you have an IDOR to fix.
Check your app in 30 seconds
Faultline scans no-code & AI-built apps for exactly these issues — free.
Run a free scanWhere Faultline fits
Faultline’s free surface scan runs on any website and checks the fundamentals — TLS, security headers, and DNS/email hygiene — so it is a fast first look no matter what you built on. For deeper data-exposure checks that hunt for IDOR-style leaks, our engine currently specializes in Base44, with support for more platforms rolling out. Wherever your app lives, start with the free scan, then run the two-account test above by hand — it is the quickest way to catch the most common version of this bug.
Related: Broken access control, explained · The #1 flaw in AI-built apps