T03 · Remote Payload Retrieval and Execution
- Location
scripts/render.py:53- Finding
Unverified Remote Executable Is Automatically Downloaded and Executed
- Content
View full analysis
bool: r = subprocess.run([ff, "-filters"], capture_output=True, text=True) return any(" subtitles " in line for line in r.stdout.splitlines()) def fetch_static_ffmpeg() -> str: if not os.environ.get("EVERMEET_FFMPEG_SHA256"): print( "⚠ WARNING: downloading ffmpeg binary from evermeet.cx without" " SHA256 verification.\n" " Set EVERMEET_FFMPEG_SHA256 env var to pin a known-good build.\n" " Recommended: install ffmpeg with libass via your package manager" " instead.\n" " macOS: brew install ffmpeg\n" " Linux: apt install ffmpeg\n" " Windows: winget install ffmpeg\n", file=sys.stderr, ) print("→ downloading libass-enabled ffmpeg from evermeet.cx…", file=sys.stderr) STATIC_FF.parent.mkdir(parents=True, exist_ok=True) z = "/tmp/ff_evermeet.zip" # Retry with exponential backoff (evermeet.cx can be flaky) last_err = None for attempt in range(3): try: urllib.request.urlretrieve(EVERMEET_URL, z) break except (urllib.error.URLError, OSError) as e: last_err = e if attempt < 2: wait = 2 ** attempt print(f" downlo ...[truncated 3653 chars]- Remediation
View remediation
