[危急] Webhook触发接口完全无认证 #68
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题描述
backend/app/api/webhooks.py 中 x_webhook_token 在第31-35行声明但从未被验证。任何知道 webhook URL 的人都可以触发工作流执行,无需任何身份验证。
涉及文件
修复建议
在 webhook 处理函数入口处验证 X-Webhook-Token 请求头与配置中的 token 是否匹配。
严重程度
危急 - 未授权访问风险