Security basics

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:

Invoice 4820 is theirs, so this is fine. But out of curiosity they edit it to:

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:

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:

Check your app in 30 seconds

Faultline scans no-code & AI-built apps for exactly these issues — free.

Run a free scan

Where 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