mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-26 08:31:55 +00:00
Hardening: require LINE webhook signatures (#44090)
* LINE: require webhook signatures in express handler * LINE: require webhook signatures in node handler * LINE: update express signature tests * LINE: update node signature tests * Changelog: note LINE webhook hardening * LINE: validate signatures before parsing webhook bodies * LINE: reject missing signatures before body reads
This commit is contained in:
@@ -7,9 +7,3 @@ export function parseLineWebhookBody(rawBody: string): WebhookRequestBody | null
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export function isLineWebhookVerificationRequest(
|
||||
body: WebhookRequestBody | null | undefined,
|
||||
): boolean {
|
||||
return !!body && Array.isArray(body.events) && body.events.length === 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user