File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
apps/sim/lib/webhooks/providers Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -143,12 +143,14 @@ export const zoomHandler: WebhookProviderHandler = {
143143 // Verify the challenge request's signature to prevent HMAC oracle attacks
144144 const signature = request . headers . get ( 'x-zm-signature' )
145145 const timestamp = request . headers . get ( 'x-zm-request-timestamp' )
146- if ( signature && timestamp ) {
147- const rawBody = JSON . stringify ( body )
148- if ( ! validateZoomSignature ( secretToken , signature , timestamp , rawBody ) ) {
149- logger . warn ( `[${ requestId } ] Zoom challenge request failed signature verification` )
150- return null
151- }
146+ if ( ! signature || ! timestamp ) {
147+ logger . warn ( `[${ requestId } ] Zoom challenge request missing signature headers — rejecting` )
148+ return null
149+ }
150+ const rawBody = JSON . stringify ( body )
151+ if ( ! validateZoomSignature ( secretToken , signature , timestamp , rawBody ) ) {
152+ logger . warn ( `[${ requestId } ] Zoom challenge request failed signature verification` )
153+ return null
152154 }
153155
154156 const hashForValidate = crypto
You can’t perform that action at this time.
0 commit comments