Repository navigation
Security & Fixes
- Browser Cookie Isolation & Lazy Extraction:
- Required non-empty
targetDomain, path matching,secureattribute checks, and expiry filtering inparseNetscapeCookieContentso unrelated browser cookies are not sent to Instagram or cross-origin redirects. - Moved default
{browser: 'auto'}extraction out of CLI startup so Instagram is not contacted before a login-wall recovery, extracted offline (--ignore-config), isolated cookie jars andyt-dlpprobeinfo.jsonfiles inside0o700temp directories with0o600exclusive files, and enforced0o700/0o600permissions on config, history, and ledger paths.
- Required non-empty
- Proxy Routing & Origin Allowlists:
- Added HTTPS/HTTP
CONNECTproxy helper (src/lib/proxy-fetch.ts) with manual redirect validation and cross-originCookie/Authorizationstripping; forwarded--proxyacross native Instagram, Bluesky, and cookie extraction flows while passing child proxy settings via environment variables instead of processargv. - Restricted Instagram
Cookietransmission strictly to official Instagram HTTPS domains, tightened Bluesky CDN host suffix matching andffmpegprotocol whitelists, and failed closed when proxying.m3u8streams with unsupported proxy schemes.
- Added HTTPS/HTTP
- Path, Template & Terminal Sanitization:
- Enforced destination containment (
assertContainedPath) and extension sanitization acrossyt-dlp,gallery-dl, Bluesky, Instagram, and batch downloads; escaped{/}ingallery-dl -fand%inyt-dlp -o. - Removed
OPEN_OMNI_DIRbinary lookup fallback ingallerydl.ts(OPEN_OMNI_BIN_DIRonly), hardened--watchagainst multi-line inputs, loopback/private hosts, and generic URLs, and stripped C0/C1/ANSI terminal control sequences across UI/CLI outputs.
- Enforced destination containment (
- Updaters, Packaging & CI Hardening:
- Added HTTPS host allowlists and optional
SHA2-256SUMSverification toyt-dlpupdates, strictcodeberg.orghost and version validation togallery-dlupdates, MSVC argument quoting toscripts/shim.cs, HTTPS/header hardening toinstall.shandworkers/installer.js, and YAML/semver validation plus scopedWINGET_TOKENusage to release packaging workflows.
- Added HTTPS host allowlists and optional
Full Changelog: v1.5.1...v1.5.2