🇰🇷 한글 설명
Flowintel의 영향을 받는 버전에서 LOG_FILE 설정값이 지정된 로그 디렉토리를 벗어나 임의의 파일 경로로 수정될 수 있는 취약점이 발견되었습니다. 공격자는 로그에 기록되는 내용을 조작하여 임의의 파일에 데이터를 작성할 수 있으며, 이를 통해 템플릿 주입 및 원격 코드 실행(RCE)까지 이어질 수 있습니다.
💡 쉬운 설명
프로그램의 로그 저장 위치를 마음대로 바꿀 수 있는 허점이 있어, 공격자가 시스템의 중요한 파일을 망가뜨리거나 악성 코드를 실행할 수 있습니다. 설정 메뉴에서 로그 파일 경로를 제한하지 못해 발생하는 문제입니다.
🇺🇸 원문 (English)
Affected versions of Flowintel allow the LOG_FILE configuration value to be modified through system settings without restricting it to a filename inside the intended log directory.
Because the application constructs the log destination from this configurable value, an administrator could set LOG_FILE to an arbitrary filesystem path. Since attackers can influence logged content, this enables controlled data to be written into unintended files. The upstream commit specifically describes an exploitation chain in which an attacker injects a template into a chosen file and subsequently abuses application rendering behavior to execute code.
The patch removes LOG_FILE from the web-editable settings, introduces validate_log_file_name() to reject absolute paths, traversal, Windows paths, null bytes, and directory components, and centralizes log path construction through resolve_log_file_path().
Version impacted: >=3.3.0
📍 영향받는 시스템
Flowintel version 3.3.0 이상
⚔️ 공격 벡터
시스템 설정의 LOG_FILE 값을 임의의 파일 경로로 변경하여 로그 데이터를 원하는 위치에 주입
🛡️ 대응 방법
LOG_FILE 설정을 웹 편집 메뉴에서 제거하고, 파일 경로 검증 로직(validate_log_file_name)이 포함된 최신 패치 적용
🔧 검증 코드
명령어 결과에 3.3.0 이상의 버전 번호가 출력되면 취약한 버전이 설치된 것입니다.
flowintel --version 2>/dev/null | grep -E '3\.[3-9]\.|[4-9]\.'