News for hackers. Stuff that matters.
Re:Apple bleee. Everyone knows what’s on your iPhone (2020) by CamperBob2 on Sunday August 13, 2023 @04:15PM (#37113943)
Wow, not salting the phone number before hashing it was a pretty amateur move. Whoever did that made other mistakes... bank on it.
Re:Apple bleee. Everyone knows what’s on your iPhone (2020) by Arch-TK on Sunday August 13, 2023 @04:20PM (#37114004)
Assuming that there's some functionality by which if you know someone's phone number, you can identify them in some UI, how would you salt this?

Do you salt all the phone numbers with the same salt? Do you send out the salt and expect phones to respond with the salted hashes (in which case, how does this achieve anything?). Do you salt based on geographic location? (Again...) Do you make every phone use the same salt and try to hide it?

Re:Apple bleee. Everyone knows what’s on your iPhone (2020) by eknkc on Sunday August 13, 2023 @04:20PM (#37114003)
What would salting do? The sender would need to share the salt anyway. I guess it would eliminate a database of number hashes approach but brute forcing a salted phone number hash should not be a big problem in any case.
Re:Apple bleee. Everyone knows what’s on your iPhone (2020) by CamperBob2 on Sunday August 13, 2023 @04:31PM (#37114140)
Salting would prevent an attacker from being able to find your phone number by hashing every possible phone number in your area code and comparing each hash with what they captured over the air.

Or am I misunderstanding something?

Re:Apple bleee. Everyone knows what’s on your iPhone (2020) by trifurcate on Sunday August 13, 2023 @04:34PM (#37114157)
You're overestimating how long it takes to brute force SHA256 all 10 digit phone numbers from scratch.
Re:Apple bleee. Everyone knows what’s on your iPhone (2020) by CamperBob2 on Sunday August 13, 2023 @04:36PM (#37114167)
You're overestimating how long it takes to brute force SHA256 all 10 digit phone numbers from scratch.

Oooookay. I'll show myself out.

/s

Re:Apple bleee. Everyone knows what’s on your iPhone (2020) by Clent on Sunday August 13, 2023 @04:55PM (#37114364)
Not sure why the sarcasm.

Security should not be implemented by anyone who is not a subject matter.

It's a subject where it's easy to sound informed while being completely wrong.

I'm of the opinion this should be a development interview question.

"How would you implement {security solution} from scratch" -- The only acceptable answer being refusal.

Re:Apple bleee. Everyone knows what’s on your iPhone (2020) by eknkc on Sunday August 13, 2023 @04:46PM (#37114269)
Just out of curiousity, took a look at some benchmarks and apparently a M2 macbook pro can hit 300MH/s easily. That would mean something like 30 seconds to hash the entire search space. I guess specilaized GPU implementations can do a lot better.

Take this with a grain of salt though, I did not test the speed claim myself.

Re:Apple bleee. Everyone knows what’s on your iPhone (2020) by wkat4242 on Sunday August 13, 2023 @04:44PM (#37114243)
Not really. As the salt is known, they can still do this easily. They just can't make a rainbow table of it. That's the only thing salting really accomplishes.
Re:Apple bleee. Everyone knows what’s on your iPhone (2020) by YeBanKo on Wednesday August 16, 2023 @08:52PM (#37155798)
SHA-256 is designed to be quick to compute, so with salt and maybe some guessing of area code the march can be found within seconds. For salt to make a difference they’d need to use some intentionally slow hash functions, like bcrypt.