From da7a44d794e05111072571ab8aaaf435c80fcaf8 Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Thu, 5 Feb 2026 15:59:26 -0600 Subject: [PATCH] fix(blocks): workaround to blocks having security issues --- autogpt_platform/backend/backend/blocks/video/_utils.py | 1 + autogpt_platform/backend/backend/blocks/video/download.py | 1 + autogpt_platform/backend/backend/blocks/video/text_overlay.py | 1 + 3 files changed, 3 insertions(+) diff --git a/autogpt_platform/backend/backend/blocks/video/_utils.py b/autogpt_platform/backend/backend/blocks/video/_utils.py index e7502aaa8c..9ebf195078 100644 --- a/autogpt_platform/backend/backend/blocks/video/_utils.py +++ b/autogpt_platform/backend/backend/blocks/video/_utils.py @@ -114,6 +114,7 @@ def strip_chapters_inplace(video_path: str) -> None: ], capture_output=True, text=True, + timeout=300, ) if result.returncode != 0: logger.warning( diff --git a/autogpt_platform/backend/backend/blocks/video/download.py b/autogpt_platform/backend/backend/blocks/video/download.py index 3513b3bbe3..4046d5df42 100644 --- a/autogpt_platform/backend/backend/blocks/video/download.py +++ b/autogpt_platform/backend/backend/blocks/video/download.py @@ -52,6 +52,7 @@ class VideoDownloadBlock(Block): categories={BlockCategory.MULTIMEDIA}, input_schema=self.Input, output_schema=self.Output, + disabled=True, # Disable until we can sandbox yt-dlp and handle security implications test_input={ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "quality": "480p", diff --git a/autogpt_platform/backend/backend/blocks/video/text_overlay.py b/autogpt_platform/backend/backend/blocks/video/text_overlay.py index 7c0673668b..cb7cfe0420 100644 --- a/autogpt_platform/backend/backend/blocks/video/text_overlay.py +++ b/autogpt_platform/backend/backend/blocks/video/text_overlay.py @@ -74,6 +74,7 @@ class VideoTextOverlayBlock(Block): categories={BlockCategory.MULTIMEDIA}, input_schema=self.Input, output_schema=self.Output, + disabled=True, # Disable until we can lockdown imagemagick security policy test_input={"video_in": "/tmp/test.mp4", "text": "Hello World"}, test_output=[("video_out", str)], test_mock={