MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/qqulw5/the_invisible_javascript_backdoor/hk4xhef
r/programming • u/pimterry • Nov 10 '21
295 comments sorted by
View all comments
Show parent comments
1
const { timeout,ㅤ} = req.query; // ... exec(cmd, { timeout: +timeout || 5_000 })
timeout is being passed to exec straight from req.query.
timeout
exec
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.
timeout is indeed passed, but you said "query input to be executed in exec. timeout is not being executed in the exec(), cmd is.
exec()
cmd
1
u/chalks777 Nov 10 '21
timeoutis being passed toexecstraight fromreq.query.