Skip to content

fix: authenticate Feishu and Teams webhooks - #842

Merged
yaojin3616 merged 1 commit into
mainfrom
agent/debugger/4140234c
Aug 10, 2026
Merged

fix: authenticate Feishu and Teams webhooks#842
yaojin3616 merged 1 commit into
mainfrom
agent/debugger/4140234c

Conversation

@yaojin3616

Copy link
Copy Markdown
Collaborator

Summary

  • validate Feishu callback tokens, decrypt encrypted envelopes, and verify signed requests
  • validate Bot Framework JWTs and bind the serviceUrl claim before persisting a Teams reply endpoint
  • require a Teams app ID even when managed identity is selected, so JWT audiences can be validated

Verification

  • PYTHONPATH=. uv run --extra dev pytest tests/test_feishu_channel_runtime.py tests/test_http_channel_runtime.py tests/test_agent_runtime_channel_provider_delivery.py

Internal Feishu report: 公开渠道入口认证不完整。Feishu webhook 缺少完整验签;Teams 未验证 Bot Framework JWT,还信任请求中的 serviceUrl,可能把 Teams bearer token 发送到攻击者地址

@yaojin3616
yaojin3616 merged commit 29759bb into main Aug 10, 2026
1 check passed
@yaojin3616
yaojin3616 deleted the agent/debugger/4140234c branch August 10, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant