webhook signature verification: fix bug
webhook signature verification: fix bug: a task in smol-software-harbor (Harbor dataset). Our webhook endpoint accepts requests stamped far in the future, which lets an attacker who captured one replay it for days ( future timestamps fails). The timestamp must be within the tolerance in either…
The task
Our webhook endpoint accepts requests stamped far in the future, which lets an attacker who captured one replay it for days (`future timestamps` fails). The timestamp must be within the tolerance in either direction. Fix `verify` in `src/verify.js` and run `node --test test/*.test.js`.
Part of efederici/smol-software-harbor.