[高] Webhook接口捕获所有HTTP Headers含敏感信息 #85
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 第73-77行,webhook 处理函数将请求的所有 HTTP headers 全部捕获并存储,包括 Authorization、Cookie 等敏感头信息。这些信息被记录到数据库和执行日志中。
涉及文件
修复建议
只捕获业务相关的 webhook 头(如 X-* 自定义头),过滤掉 Authorization、Cookie、Host 等敏感/无关头。
严重程度
高 - 敏感信息泄漏