Description
WeKnora before 0.7.0 fails to re-validate HTTP redirect targets in the POST /api/v1/knowledge-bases/:id/knowledge/url endpoint when downloading documents from user-supplied URLs. Authenticated attackers can bypass initial SSRF validation by supplying a public URL that redirects to internal network addresses, allowing access to internal services and cloud metadata.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Tencent | WeKnora | 0.5.2 – < 0.7.0 | 0.7.0 |
References
- GitHub Issue #2511 issue-tracking
- https://github.com/Tencent/WeKnora product
- https://github.com/Tencent/WeKnora/commit/1d322c525a6197d24f07555b4b18ad33313b4328 patch
- https://github.com/Tencent/WeKnora/blob/v0.6.2/internal/application/service/knowledge_util.go#L339-L348 technical-description
- VulnCheck Advisory: WeKnora before 0.7.0 SSRF via Unvalidated HTTP Redirects third-party-advisory