[高] Webhook接口原始异常信息暴露在500响应中 #86
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 第130行和229行,500错误响应中直接暴露 str(e),可能泄漏内部实现细节(数据库结构、文件路径等)。
涉及文件
修复建议
返回通用错误消息,详细错误仅记录到服务端日志。
严重程度
高 - 信息泄漏