by lucideer · 9y ago · 0 comments
This line seems to be the sole justification for the hyperbolic title. You might do tab-completed typo...
There's three justifications listed - the above (fairly minor, imo) one, information disclosure, and entity enumeration (which in this context is just another term for information disclosure).
The part on information disclosure has this line:
> all it takes to know your user count is to create an account. A number of social networks boasting impressive user bases were pwn3d this way
What? I would love a reference or explanation here. Who has been "pwn3d" by exposing their user count?
The "security through obscurity is bad" rhetoric has been rightly debunked plenty at this stage - obscurity is a valid component of layered security, but obscuring your table row count seems... odd. Why would that be a secret?
If you're worried about people being able to enter primary keys into a URL to access/scrape arbitrary records, you need better auth.
We, unfortunately, edit the live db all the time.
Hope everything doesn't blow up.
It's not ideal.
This isn't really an issue at all but can upset those with OCD-ish tendencies.
There are arguments for and against any technique, but this one seems really ridiculous to me, especially if you consider what any "countermeasure" would do to the code (which is usually much more important than the data in the long run!).
It's less about direct "pwn3ge" than about business intelligence. The number of users could be sensitive information for some businesses, but it's not just users. Any item where your volume is valuable proprietary information, you better make sure you aren't exposing an auto-incrementing id. Number of accounts, number of daily orders, number of distribution centers, number of product models, these might be data points that a growing business would prefer not to expose to their competitors via, for example, URL query parameters. You should make competitors work harder for their intelligence.
Imagine that the social network does a rewrite, and rather than converting all the old accounts/data it just uses an additional flag to indicate which database to use. In that case a user id would not be globally unique for the website, but it would be unique for the specific database.
This is actually more likely than it sounds. The company can hire a fresh new team to make an experimental new site, and if it's a hit, they can make some ugly hack to do calls to the old website using web APIs to get any old users from that system. This way the new team doesn't need to learn and figure out how the old system was built, which likely lacks any documentation and where the original developers has left the company.
Without a full understanding of the layers of indirection it would be impossible to determine with certainty the number of users a social network has.
https://www.troyhunt.com/kids-pass-just-reminded-us-how-hard...
Also, this is only the case if your raw user IDs are visible. You only need a very basic encryption scheme to hide them. It can be as simple as taking two large prime numbers and sending (uid + x) % y to the user.
Mark Zuckerberg is famously 4 and you can find a lot of famous silicon valley types in the first million user ids :)