▲ | kentonv 4 days ago | |||||||
I believe this will stack-overflow on the client side. The callback is invoked in recording mode synchronously when you call `.map()`. Nested maps are allowed, but this case ends up being infinitely nested, so eventually you're going to hit a stack overflow while trying to do the recording. | ||||||||
▲ | comex 4 days ago | parent | next [-] | |||||||
What prevents an attacker from using nested maps to make the server spend exponential amounts of CPU and memory on the response? Is there some kind of limit on the total number of response items? | ||||||||
| ||||||||
▲ | meindnoch 4 days ago | parent | prev [-] | |||||||
But you could detect such recursion and stop descending on the client side. Then the server could mirror the same recursion on their end. | ||||||||
|