🇰🇷 한글 설명
IBM Langflow OSS 1.0.0부터 1.8.4까지의 파일 처리 API에 여러 접근 통제 취약점이 존재합니다. 인증 없이 flow_id와 file_name을 알면 이미지 파일을 조회할 수 있고, 인증된 사용자도 다른 사용자의 파일에 접근할 수 있습니다(IDOR). 이로 인해 다중 사용자 환경에서 테넌트 격리가 깨집니다.
💡 쉬운 설명
로그인하지 않은 사람도 특정 번호를 알면 다른 사람이 올린 이미지 파일을 볼 수 있습니다. 로그인한 사용자도 다른 사용자의 파일을 임의로 내려받을 수 있는 문제가 있습니다.
🇺🇸 원문 (English)
IBM Langflow OSS 1.0.0 through 1.8.4 contains multiple broken access control vulnerabilities in its file handling API that allow unauthorized access to user files.The /api/v1/files/images/{flow_id}/{file_name} endpoint does not enforce authentication or authorization checks, allowing unauthenticated remote attackers to retrieve image files associated with any flow by specifying a valid flow_id and file_name.Additionally, the /api/v1/files/download/{flow_id}/{file_name} endpoint requires authentication but fails to properly validate ownership of the requested resource. As a result, an authenticated user can access files belonging to other users by supplying arbitrary identifiers, leading to an authorization bypass (IDOR).Successful exploitation may result in unauthorized disclosure of sensitive data, including files stored in private flows. This issue breaks tenant isolation in multi-user deployments.
📍 영향받는 시스템
IBM Langflow OSS 1.0.0 ~ 1.8.4
⚔️ 공격 벡터
인증 없이 또는 낮은 권한으로 /api/v1/files/images/{flow_id}/{file_name} 및 /api/v1/files/download/{flow_id}/{file_name} 엔드포인트에 임의의 식별자를 넣어 요청
🛡️ 대응 방법
IBM 공지에 따라 Langflow를 1.8.4 초과 패치 버전으로 업데이트하고, 파일 접근 시 소유자 권한 검증을 적용
🔧 검증 코드
출력된 Version 값이 1.0.0 이상 1.8.4 이하이면 취약하며, 1.8.4 초과이면 패치된 버전입니다.
pip show langflow 2>/dev/null | grep -i version