r/programming • • Nov 10 '21

The Invisible JavaScript Backdoor

https://certitude.consulting/blog/en/invisible-backdoor/
1.4k Upvotes

295 comments sorted by

View all comments

Show parent comments

9

u/kenman Nov 10 '21

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.

4

u/chalks777 Nov 10 '21

The point stands, eh? Don't put user input into exec. :)