mirror of
https://github.com/alexta69/metube.git
synced 2026-07-17 16:47:30 +00:00
User-submitted URLs were passed straight to yt-dlp's generic extractor, letting the server fetch internal endpoints (cloud metadata, loopback, RFC1918 hosts). Add a url_guard.validate_url check at every URL ingress (add, subscribe, and nested playlist recursion) that rejects non-http(s) schemes and hosts resolving to non-global addresses, while leaving bare video IDs and search prefixes untouched. |
||
|---|---|---|
| .. | ||
| tests | ||
| bg_tasks.py | ||
| dl_formats.py | ||
| main.py | ||
| state_store.py | ||
| subscriptions.py | ||
| url_guard.py | ||
| ytdl.py | ||