# I changed one number in a URL and was suddenly looking at a stranger's private data — retained record

> Retained reddit record from reddit:SaaS.

Canonical: https://highsignal.app/data/records/cf7d7a0a67df9b7b

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:SaaS)  published 2026-06-07 02:26 ingested 2026-06-07 08:48

[original source ↗](https://www.reddit.com/r/SaaS/comments/1tyztkj/i_changed_one_number_in_a_url_and_was_suddenly/)

## retained text



```
<!-- SC_OFF --><div class="md"><p>This has been sitting with me for a few weeks and I think someone here needs to read it before it happens to them.</p> <p>I was poking around a small SaaS built almost entirely with [Lovable]. Real product, real users. I was clicking through, looking at one record, and I noticed the URL had the record's ID sitting right there in it. Something like /clients/104. Out of pure habit I changed it to 105.</p> <p>It loaded... Someone else's client. Full details. I changed it again. Another stranger. I just kept going.</p> <p>I want to be clear about what that means. This was not a hack. I did not use any tools. I was logged in as a normal user and I was reading every other user's private data by typing different numbers. And it had been live like that for weeks. Anyone who got curious the way I did could have done the exact same thing, and nobody would have ever known.</p> <p>When I looked at why, it honestly turned my stomach, because it is so simple. The AI wrote code that checked whether you were logged in. It never checked whether the thing you were asking for actually belonged to you. And here is the part that gets everyone: those two checks look almost identical when you read the code, so the second one just quietly never gets written. The tool does not warn you. The app works perfectly in every demo. It only breaks the day someone types 105.</p> <p>I am posting because I do not want you to find this the way I did, or worse, find out from a furious user or a screenshot doing the rounds.</p> <p>So please take five minutes tonight and check your own app:</p> <p>Make two accounts, A and B. Log in as A. Open one of your own records and look at the URL or the network tab for an ID. Now put in an ID that belongs to B. If you can see B's stuff while logged in as A, you have the hole. Try it anywhere you have things keyed by an ID. Orders, profiles, messages, uploads, invoices.</p> <p>If you run this and your stomach drops, you are really not alone. This is probably the single most common flaw in AI-built apps right now. Drop a comment or DM me and I will help you make sense of what your tool actually generated and how to close it. No catch. I have just been buried in this and would rather it be useful to someone....</p> <p>(Honest note: I have gotten a bit obsessed with this problem and I am poking at whether there is a tool worth building around it. That is genuinely not why I am posting, and there is nothing to buy. The check above is the whole point.)</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Technical-Log4868"> /u/Technical-Log4868 </a> <br /> <span><a href="https://www.reddit.com/r/SaaS/comments/1tyztkj/i_changed_one_number_in_a_url_and_was_suddenly/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/SaaS/comments/1tyztkj/i_changed_one_number_in_a_url_and_was_suddenly/">[comments]</a></span>
```



document fetched 2026-06-07 08:48
