🇰🇷 한글 설명
FastGPT 4.14.8.3 이하 버전에서 fastgpt-preview-image.yml 워크플로우를 통해 임의 코드 실행 및 비밀 정보 유출이 가능합니다. 공격자가 작성한 Dockerfile을 사용하여 리포지토리 비밀 정보를 탈취하거나 공급망 공격을 수행할 수 있는 취약점입니다.
💡 쉬운 설명
외부인이 보낸 코드가 시스템의 중요한 비밀번호를 훔치거나 가짜 프로그램을 만들 수 있는 보안 구멍이 발견되었습니다. 공격자가 만든 악성 설정 파일을 통해 시스템 권한을 가로챌 수 있습니다.
🇺🇸 원문 (English)
FastGPT is an AI Agent building platform. In versions 4.14.8.3 and below, the fastgpt-preview-image.yml workflow is vulnerable to arbitrary code execution and secret exfiltration by any external contributor. It uses pull_request_target (which runs with access to repository secrets) but checks out code from the pull request author's fork, then builds and pushes Docker images using attacker-controlled Dockerfiles. This also enables a supply chain attack via the production container registry. A patch was not available at the time of publication.
📍 영향받는 시스템
FastGPT 4.14.8.3 및 그 이하 모든 버전
⚔️ 공격 벡터
pull_request_target 권한을 악용한 공격자의 Dockerfile 빌드 및 이미지 푸시
🛡️ 대응 방법
해당 취약점이 해결된 패치 버전으로 업데이트하거나 GitHub Actions 워크플로우의 권한 설정을 수정해야 합니다.
🔧 검증 코드
출력된 태그 버전이 4.14.8.3보다 높은지 확인하여 취약 여부를 판단합니다.
curl -s https://api.github.com/repos/labring/FastGPT/releases | grep -E 'tag_name'