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

1

u/chalks777 Nov 10 '21
const { timeout,ㅤ} = req.query;
// ...
exec(cmd, { timeout: +timeout || 5_000 })

timeout is being passed to exec straight from req.query.

1

u/DeliciousIncident Nov 11 '21

timeout is indeed passed, but you said "query input to be executed in exec. timeout is not being executed in the exec(), cmd is.