🇰🇷 한글 설명
AgentFlow는 POST /api/runs 및 POST /api/runs/validate 엔드포인트에서 사용자가 제어 가능한 pipeline_path 매개변수를 통해 임의의 Python 코드를 실행할 수 있는 취약점이 있습니다. 공격자는 로컬 디스크에 존재하는 Python 파이프라인 파일의 경로를 조작하여 AgentFlow 프로세스 권한으로 코드를 실행시킬 수 있습니다.
💡 쉬운 설명
AgentFlow는 악의적인 사용자가 파이썬 파일 경로를 조작하여 서버에서 임의의 명령어를 실행하도록 만들 수 있는 결함이 있습니다. 이를 통해 공격자는 시스템 전체를 제어할 수 있게 됩니다.
🇺🇸 원문 (English)
AgentFlow contains an arbitrary code execution vulnerability that allows attackers to execute local Python pipeline files by supplying a user-controlled pipeline_path parameter to the POST /api/runs and POST /api/runs/validate endpoints. Attackers can induce requests to the local AgentFlow API to load and execute existing Python pipeline files on disk, resulting in code execution in the context of the user running AgentFlow.
📍 영향받는 시스템
AgentFlow (모든 취약점이 미패치된 버전)
⚔️ 공격 벡터
POST /api/runs 또는 /api/runs/validate 엔드포인트에 조작된 pipeline_path 파라미터 전송으로 로컬 Python 파일 실행 유도
🛡️ 대응 방법
AgentFlow를 보안 패치가 적용된 최신 버전으로 즉시 업그레이드 및 API 입력값 검증 강화
🔧 검증 코드
설치된 AgentFlow 버전을 확인하고 보안 권고사항에서 지정한 패치 버전 이상으로 업데이트되었는지 검증
pip show agentflow 2>/dev/null | grep Version || echo 'AgentFlow not installed'