WeKnora/internal/handler/session
wizardchen b2c009e61c feat(security): implement SSRF and path traversal protections in image handling and file downloads
- Added SSRF protection by stripping client-supplied URL and Caption fields from image attachments in the QA request handler.
- Introduced a validation function to ensure Feishu API path parameters contain only safe characters, preventing path traversal attacks.
- Enhanced the WeCom webhook adapter to reject internal/private URLs unless they are on an allowlist, improving security during file downloads.
- Implemented a mechanism to bypass SSRF checks for trusted IM platform API hosts.
2026-03-25 22:08:29 +08:00
..
agent_stream_handler.go feat(agent): enhance event emission for final answers and fallback handling 2026-03-19 18:20:09 +08:00
handler.go feat: add clear session messages functionality 2026-03-16 02:26:47 +08:00
helpers.go fix: Adjust temperature validation to allow zero as a valid setting and default only for negative values. 2026-03-20 18:21:39 +08:00
image_upload.go feat: implement image upload and multimodal support 2026-03-16 02:26:47 +08:00
qa.go feat(security): implement SSRF and path traversal protections in image handling and file downloads 2026-03-25 22:08:29 +08:00
stream.go feat: 新增API Key认证支持,优化Swagger文档安全配置 2025-12-22 15:01:09 +08:00
title.go feat: 支持知识库选择模式和标题生成模型配置 2025-12-29 14:35:13 +08:00
types.go feat: implement image upload and multimodal support 2026-03-16 02:26:47 +08:00