zlacker

[parent] [thread] 3 comments
1. gizmo6+(OP)[view] [source] 2021-06-05 23:59:31
This requires that you add ~1 second of latency to every request that requires you to hash the IP. Even if we assume relatively aggressive caching, this is still incredibly unacceptable from a user experience perspective.

Assuming you do that, you are looking at about 1193046 hours to hash the entire address space. More specifically, you are looking at 1193046 CPU hours.

You can rent a 96 vCPU c5.24xlarge instance from AWS for a rate of $4.08/hour; or $0.0425/CPU-Hour. Assuming this offers the same per-cpu hashrate as the general purpose web-server, you are looking at a cost of $50,704 to construct a rainbow table. That is no where near a prohibitive sum of money.

You can probably reduce the cost by shopping around for compute or using bare metal. You could see significant cost reductions by using hashing optimized ASICs.

Combine this with the fact that no website is going to spend 1000ms just computing the hash for every request (even if you allow for caching). And the fact that they can probably narrow down the address space they are interested in considerably if they wanted to save money.

2^32 is just too small of an asymmetry between legitimate use and an attack to be a viable defense.

replies(1): >>xvecto+u1
2. xvecto+u1[view] [source] 2021-06-06 00:15:49
>>gizmo6+(OP)
From a user experience perspective, you can perform the computation asynchronously. There are also hash algorithms resistant to ASIC.

But yeah, everything else you said makes sense.

replies(1): >>gizmo6+v6
◧◩
3. gizmo6+v6[view] [source] [discussion] 2021-06-06 01:11:58
>>xvecto+u1
And now you have a ~1000ms latency between when some events happen, and when you can log them. Even assuming all such events get logged, you will be left with a jumbled mess of out-of-order events.
replies(1): >>tremon+eP
◧◩◪
4. tremon+eP[view] [source] [discussion] 2021-06-06 12:14:22
>>gizmo6+v6
Why does your logging system rely on the order of entry insertion and not on the entry timestamp?
[go to top]