kcve.ai취약점 정보 · 내 자산 확인

CVE-2026-30821 Flowise: Arbitrary File Upload via MIME Spoofing

Flowise: MIME 스푸핑을 통한 임의의 파일 업로드

설명

Flowise is a drag & drop user interface to build a customized large language model flow. Prior to version 3.0.13, the /api/v1/attachments/:chatflowId/:chatId endpoint is listed in WHITELIST_URLS, allowing unauthenticated access to the file upload API. While the server validates uploads based on the MIME types defined in chatbotConfig.fullFileUpload.allowedUploadFileTypes, it implicitly trusts the client-provided Content-Type header (file.mimetype) without verifying the file's actual content (magic bytes) or extension (file.originalname). Consequently, an attacker can bypass this restriction by spoofing the Content-Type as a permitted type (e.g., application/pdf) while uploading malicious scripts or arbitrary files. Once uploaded via addArrayFilesToStorage, these files persist in backend storage (S3, GCS, or local disk). This vulnerability serves as a critical entry point that, when chained with other features like static hosting or file retrieval, can lead to Stored XSS, malicious file hosting, or Remote Code Execution (RCE). This issue has been patched in version 3.0.13.

Flowise는 사용자 정의 된 대형 언어 모델 흐름을 구축하기 위해 드래그 앤 드롭 사용자 인터페이스입니다. 버전 3.0.13 이전 버전에서 /api/v1/attachments/:chatflowId/:chatId 엔드포인트는 WHITELIST_URLS에 나열되어 파일 업로드 API에 대한 인증되지 않은 액세스를 허용합니다. 서버는 chatbotConfig.fullFileUpload.allowedUploadFileTypes에 정의된 MIME 유형에 따라 업로드를 검증하지만, 파일의 실제 콘텐츠(마법의 바이트) 또는 확장(file.originalname)을 확인하지 않고 클라이언트에서 제공하는 Content-Type 헤더(file.mimetype)를 암묵적으로 신뢰합니다. 따라서 공격자는 악의적인 스크립트나 임의의 파일을 업로드하는 동안 Content-Type을 허용된 유형(예: 응용 프로그램/pdf)으로 스푸핑하여 이러한 제한을 우회할 수 있습니다. addArrayFilesToStorage를 통해 업로드되면 이러한 파일은 백엔드 스토리지(S3, GCS 또는 로컬 디스크)에 유지됩니다. 이 취약점은 정적 호스팅 또는 파일 검색과 같은 다른 기능과 함께 체인을 연결하면 저장된 XSS, 악성 파일 호스팅 또는 원격 코드 실행(RCE)으로 이어질 수 있는 중요한 진입점 역할을 합니다. 이 문제는 버전 3.0.13에서 패치되었습니다.

영향 받는 제품 제품 1개

  • FlowiseAI

    Flowise

    해결 버전 있음

    영향 받는 버전

    • 3.0.13 미만

    해결 버전

    • 3.0.13 이상

참고 자료 2건

‹ 목록

점검 지원 범위 문의

도입 문의