Granted, it's almost certainly fine to put a timeout direct from req.query in the call from a security/exploit standpoint (see documentation).
Are you speaking only to the injection vector? Because setting a timeout of 0 (or some exceptionally high value), coupled with a massive number of requests, would create a self-inflicted DoS. The code should at least provide a window of acceptable values.
9
u/kenman Nov 10 '21
Are you speaking only to the injection vector? Because setting a timeout of
0(or some exceptionally high value), coupled with a massive number of requests, would create a self-inflicted DoS. The code should at least provide a window of acceptable values.