mirror of
https://github.com/mudler/LocalAI
synced 2026-04-21 21:37:21 +00:00
User-supplied URLs passed to GetContentURIAsBase64() and downloadFile() were fetched without validation, allowing SSRF attacks against internal services. Added URL validation that blocks private IPs, loopback, link-local, and cloud metadata endpoints before fetching. Co-authored-by: kolega.dev <faizan@kolega.ai> |
||
|---|---|---|
| .. | ||
| base64.go | ||
| base64_test.go | ||
| ffmpeg.go | ||
| hash.go | ||
| json.go | ||
| logging.go | ||
| path.go | ||
| strings.go | ||
| untar.go | ||
| urlfetch.go | ||
| urlfetch_test.go | ||
| utils_suite_test.go | ||