News for hackers. Stuff that matters.
Re:Clubhouse data leak: 1.3M user records leaked online for ... by bitexploder on Sunday April 11, 2021 @09:36AM (#26770268)
Nothing wrong with auto incrementing identifiers if actual security controls (authorization) are implemented for already authenticated users.
Re:Clubhouse data leak: 1.3M user records leaked online for ... by yardstick on Sunday April 11, 2021 @09:43AM (#26770324)
Sequential is still bad if you don’t want to disclose the size of your customer base or other commercially sensitive information.

Also see the German Tank Problem[1].

1. https://en.m.wikipedia.org/wiki/German_tank_problem

Re:Clubhouse data leak: 1.3M user records leaked online for ... by bitexploder on Sunday April 11, 2021 @02:59PM (#26772556)
Am aware. Still don’t think it’s worth the hassle for most situations. Can leak information, but context is really important. I have rarely seen it be an issue over many years of app assessments. Just something to keep in the threat model for when it’s relevant.
Re:Clubhouse data leak: 1.3M user records leaked online for ... by yardstick on Sunday April 11, 2021 @11:30PM (#26775830)
There was one wireless ISP many years ago in a city I lived in that had a signal/reception page to see your signal to their closet tower. The URL included the customer number to identify your location. I quickly discovered it had no authorisation checks. You could easily find the exact addresses of all of their customers. Inactive/old customers returned no data.
Re:Clubhouse data leak: 1.3M user records leaked online for ... by shalmanese on Sunday April 11, 2021 @07:55PM (#26774710)
What hassle is it? Where in your codebase do you assume sequentiality? It should be a one line change in your db configs to generate GUIDs instead of ids. You have to do it eventually anyway as sequentiality can't be assumed once you shard.
Re:Clubhouse data leak: 1.3M user records leaked online for ... by bitexploder on Sunday April 11, 2021 @08:15PM (#26774821)
Depends on the needs I suppose. I don’t like starting off with GUIDs until it’s proven they are needed, because, as you say, it’s a simple change. Sharing does complicate the picture, but how many apps really need sharding.
Re:Clubhouse data leak: 1.3M user records leaked online for ... by sangnoir on Monday April 12, 2021 @07:41PM (#26786510)
> I don’t like starting off with GUIDs until it’s proven they are needed

For security incidents, "when they are needed" will be too late to do anything. If it's all the same to you, I'd advise that you default to GUIDs.

Re:Clubhouse data leak: 1.3M user records leaked online for ... by jgalt212 on Sunday April 11, 2021 @09:57AM (#26770406)
true, but if you do sequential for users and free trials, the information leakage can be close to zero. Think about if all those AOL CDs were sequentially numbered.
Re:Clubhouse data leak: 1.3M user records leaked online for ... by SahAssar on Sunday April 11, 2021 @11:08AM (#26770818)
That's not zero information leakage. That's just leaking another statistic that is somewhat correlated to the one you want to hide (you're leaking the production of trial AOL CDs, and production of trial AOL CDs have some correlation to number of new users).
Re:Clubhouse data leak: 1.3M user records leaked online for ... by jbluepolarbear on Sunday April 11, 2021 @10:15AM (#26770514)
Don’t return indexes with user queries.
Re:Clubhouse data leak: 1.3M user records leaked online for ... by wongarsu on Sunday April 11, 2021 @10:22AM (#26770542)
Usually you need some external unique identifier so you can interact with the object. Sure, that doesn't have to be the db index, but it is the convenient choice
Re:Clubhouse data leak: 1.3M user records leaked online for ... by azinman2 on Sunday April 11, 2021 @04:00PM (#26772939)
Except when you want to change databases, or grow beyond a single one, or shard what you have. If you do this you’re binding your future self.
Re:Clubhouse data leak: 1.3M user records leaked online for ... by sangnoir on Monday April 12, 2021 @07:37PM (#26786486)
If you follow the "defense in depth" paradigm, then sequential identifiers bad when the other controls are defeated. Sequential ID make it trivial to crawl the entire dataset - which could be the difference between "Information on 4 million users was stolen" and "information from 4 users was stolen"