fix(security): 第三轮审计P1修复 - 音色克隆SSRF防护 + 支付接口异常信息脱敏 #388
Reference in New Issue
Block a user
Delete Branch "fix/voice-clone-ssrf"
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?
变更内容
P1-1: 音色克隆 source_audio_url SSRF 防护(二阶SSRF)
VoiceCloneWorkflowService.start_clone()和retry_clone()中增加 URL 安全校验packages.shared.url_security.validate_url_safety统一防护P1-2: 订阅支付回调接口异常信息脱敏
payment_callback异常时不再返回原始异常字符串(可能泄漏数据库错误、内部路径等)测试
tests/unit/test_voice_clone_workflow.py22个测试全部通过tests/unit/test_url_security.py33个测试全部通过