Шаблоны github-issue-bot в appwrite/templates проверяют подпись веб-перехватчика GitHub с инвертированным условием. verifyWebhook в node/github-issue-bot/src/github.js и в node-typescript/github-issue-bot/src/github.ts возвращает «typeof Signature !== 'string' || (ожидайте проверки (...))», поэтому, когда заголовок X-Hub-Signature-256 отсутствует, первый операнд истинен, логическое ИЛИ замыкается, и функция сообщает об успехе, не выполняя никаких действий. HMAC-проверка. main.js отклоняет запрос только в том случае, еслиverifyWebhook возвращает false, поэтому неаутентифицированный запрос, не имеющий подписи, проходит проверку. Затем обработка продолжается postComment, который берет репозиторий и выдает объекты непосредственно из тела запроса, позволяя вызывающей стороне направлять развернутую функцию на публикацию комментария в репозитории и задаче по своему выбору с использованием настроенного GITHUB_TOKEN, при этом логин автора задачи из тела интерполируется в текст комментария.
Показать оригинальное описание (EN)
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 only when verifyWebhook returns false, so an unauthenticated request carrying no signature passes the check. Processing then continues to postComment, which takes the repository and issue objects directly from the request body, letting the caller direct the deployed function to post a comment on a repository and issue of their choosing using the configured GITHUB_TOKEN, with the issue author login from the body interpolated into the comment text.
Характеристики атаки
Последствия
Строка CVSS v4.0