The github-issue-bot templates in appwrite/templates verify the GitHub webhook signature with an inverted condition. verifyWebhook in node/github-issue-bot/src/github.js and in node-typescript/github…
Medium CVSS 5.8
Summary
The github-issue-bot templates in appwrite/templates verify the GitHub webhook signature with an inverted condition. verifyWebhook in node/github-issue-bot/src/github.js and in node-typescript/github-issue-bot/src/github.ts returns "typeof signature !== 'string' || (await verify(...))", so when the X-Hub-Signature-256 header is absent the first operand is true, the logical OR short-circuits, and the function reports success without performing any HMAC verification. main.js rejects a request onl…
In-depth triage
No in-depth report has been generated yet (DR-003 v2 AI pipeline is under construction).
Sources
- NVD DATABASE
Original Links
- https://github.com/appwrite/templates
- https://github.com/appwrite/templates/blob/1.1.2/node-typescript/github-issue-bot/src/github.ts
- https://github.com/appwrite/templates/blob/1.1.2/node/github-issue-bot/src/github.js
- https://github.com/appwrite/templates/blob/1.1.2/node/github-issue-bot/src/main.js
- https://github.com/appwrite/templates/issues/350
- https://www.vulncheck.com/advisories/appwrite-templates-github-issue-bot-skips-webhook-signature-verification-when-the-x-hub-signature-256-header-is-absent
Timeline
- nvd_ingest NVD