Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I'll concede that iterating through the entirety of that range would take a very long time

You don't say?

> but this still presumes that said iteration in its entirety is necessary in the first place.

It is, because it's compared to sequential IDs where you know exactly the start and end. No way of knowing with UUIDs.

> Maybe, if they're indeed randomly-generated. Are they indeed UUIDv4? Is your RNG up to snuff?

Stop constantly moving the goalposts, and assume they're used correctly, Jesus Christ. Anytime someone talks about UUID it's most likely v4, unless you want non-random/deterministic v5 or time-sortable v7. But the most common is v4.

> Hijacking a session is harder than finding a publicly-shared ID floating around somewhere.

Even firebase stores refresh tokens accessible by javascript (localstorage as opposed to HTTPOnly). Any extension with sufficient users is more viable than finding a single collision of a UUID. Programs with access to the cookies on the filesystem, etc. It's much easier to hijack sessions than guessing UUIDs.

> Dumbest way would be to DDoS the thing. At some number of concurrent sessions and/or messages per second, it'll start to choke, and that'll give you the upper bound on how many people are using it, at least at a time.

Won't tell you a single thing. Might be a beefy server serving 3 users, or a slow server with lots of downtime for millions of users. They may all be using it at once, or few of them sporadically. No way of knowing which. It's a retarded guesstimate. But this only shows the mental gymnastics you're willing to use to be "right". Soon you'll tell me "I'll just ask my contact at the NSA".

> sequential IDs are insecure

Nobody claimed this. They can be enumerated which may or may not be a problem depending on the data. Which I said in my first comment, and you seem to agree. This entire thread was a complete waste of my time.



> This entire thread was a complete waste of my time.

The feeling is mutual. Have a nice day.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: