hermes-agent/website/docs/user-guide/messaging
m0n3r0 f378f00bfb fix(feishu): validate verification token before reflecting url_verification challenge
When FEISHU_VERIFICATION_TOKEN is configured, an unauthenticated remote
could previously prove endpoint control by sending a url_verification
payload with any attacker-controlled challenge string — the handler
reflected the challenge BEFORE running the token check.

Move the verification_token check ahead of the url_verification echo so
the challenge response is gated on a valid token. Add a regression test
covering the wrong-token case. Also fix the stale
test_connect_webhook_mode_starts_local_server fixture to set
FEISHU_VERIFICATION_TOKEN (post #30746 webhook mode requires a secret).

Salvaged from PR #29663 by @m0n3r0 — kept the url_verification reorder
and its regression test; dropped the host-conditional weakening of the
#30746 secret guard (we want webhook secrets required regardless of
bind host, not only on 0.0.0.0/::).

Docs updated to call out the gating.

Co-authored-by: teknium1 <127238744+teknium1@users.noreply.github.com>
2026-05-24 04:51:19 -07:00
..
_category_.json
bluebubbles.md
dingtalk.md
discord.md docs: comprehensive 2-week sweep of feature/PR coverage gaps (#28497) 2026-05-18 23:55:25 -07:00
email.md
feishu.md fix(feishu): validate verification token before reflecting url_verification challenge 2026-05-24 04:51:19 -07:00
google_chat.md
homeassistant.md
index.md ntfy: tighten robustness, dedupe auth/truncation, add docs 2026-05-23 16:13:01 -07:00
line.md feat(gateway): add LINE Messaging API platform plugin (#23197) 2026-05-10 06:40:46 -07:00
matrix.md docs: comprehensive 2-week sweep of feature/PR coverage gaps (#28497) 2026-05-18 23:55:25 -07:00
mattermost.md docs: comprehensive 2-week sweep of feature/PR coverage gaps (#28497) 2026-05-18 23:55:25 -07:00
msgraph-webhook.md
ntfy.md ntfy: tighten robustness, dedupe auth/truncation, add docs 2026-05-23 16:13:01 -07:00
open-webui.md
qqbot.md
signal.md
simplex.md docs(simplex): remove broken Docker install command (#26974) (#26975) 2026-05-23 16:32:20 -07:00
slack.md docs: comprehensive 2-week sweep of feature/PR coverage gaps (#28497) 2026-05-18 23:55:25 -07:00
sms.md
teams-meetings.md
teams.md
telegram.md Observe unmentioned Telegram group messages 2026-05-20 22:55:31 -07:00
webhooks.md
wecom-callback.md
wecom.md
weixin.md
whatsapp.md
yuanbao.md