mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
* fix(engine): check proxied download hosts against local DNS; keep raw GIF downloads private Behind an env proxy (HTTPS_PROXY with NODE_USE_ENV_PROXY=1 or --use-env-proxy), composition downloads skipped the resolved-address check and relied on the literal-host check alone. An internal DNS name passed, and NO_PROXY hosts were dialled directly. Now the downloader resolves the host on this machine first and refuses it when any answer is non-public. A name this machine cannot resolve is still left to the proxy, so proxy-only networks keep working. Studio's remote GIF prep now picks only URLs whose path ends in .gif, discards a downloaded body that does not start with a GIF signature, and the raw downloads folder is no longer served to the page; only the converted output is. * fix(cli): read the downloaded GIF's header through a bounded read stream CodeQL read the openSync call as a temp-file creation. The file sits in the project's .hyperframes folder and is only read, but a six-byte read stream does the same check without a file descriptor of our own.