🇰🇷 한글 설명
dag-factory 라이브러리의 cicd.yml GitHub Actions 워크플로우가 pull_request_target 트리거에서 arbitrary code execution 취약점을 가지고 있습니다. 공격자가 GitHub Actions 환경에서 임의의 코드를 실행하여 GITHUB_TOKEN을 포함한 민감한 시크릿을 탈취하고 저장소를 완전히 장악할 수 있습니다.
💡 쉬운 설명
dag-factory의 자동화 워크플로우가 악의적인 Pull Request를 통해 공격자가 임의의 코드를 실행할 수 있도록 허용합니다. 공격자는 이를 통해 저장소의 모든 비밀 정보와 제어권을 탈취할 수 있습니다.
🇺🇸 원문 (English)
dag-factory is a library for Apache Airflow® to construct DAGs declaratively via configuration files. In versions 0.23.0a8 and below, a high-severity vulnerability has been identified in the cicd.yml workflow within the astronomer/dag-factory GitHub repository. The workflow, specifically when triggered by pull_request_target, is susceptible to exploitation, allowing an attacker to execute arbitrary code within the GitHub Actions runner environment. This misconfiguration enables an attacker to establish a reverse shell, exfiltrate sensitive secrets, including the highly-privileged GITHUB_TOKEN, and ultimately gain full control over the repository. This is fixed in version 0.23.0a9.
📍 영향받는 시스템
dag-factory 버전 0.23.0a8 이하
⚔️ 공격 벡터
pull_request_target 트리거된 GitHub Actions 워크플로우를 악용하여 저장소에 PR을 제출하고 arbitrary code execution 실행
🛡️ 대응 방법
dag-factory를 0.23.0a9 이상으로 업그레이드하고 GitHub Actions 워크플로우의 pull_request_target 설정을 검토하여 권한 제한 실시
🔧 검증 코드
Version이 0.23.0a9 이상이면 안전, 0.23.0a8 이하면 취약 상태
pip show dag-factory 2>/dev/null | grep Version