🇰🇷 한글 설명
Kiota는 OpenAPI 기반 HTTP 클라이언트 코드 생성기입니다. 1.29.1 및 1.32.5 이전 버전에서 특정 플러그인 사용 시 경로 검증 없이 공격자가 제어하는 파일 경로를 생성된 매니페스트에 포함할 수 있는 취약점이 발견되었습니다. 이를 통해 경로 탐색(Path Traversal)이나 패키지 외부 파일 포함 공격이 가능합니다.
💡 쉬운 설명
프로그램이 자동으로 파일을 만들 때, 공격자가 입력한 잘못된 경로를 그대로 따라가서 컴퓨터의 중요한 파일을 읽거나 실행할 수 있는 문제입니다. 생성된 결과물을 사용할 때 의도치 않은 파일이 포함될 위험이 있습니다.
🇺🇸 원문 (English)
Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 1.32.5, `kiota plugin add` and `kiota plugin generate` (with `-t APIPlugin`) emitted attacker-controlled static_template.file values from x-ai-adaptive-card and x-ai-capabilities into generated Microsoft 365 Copilot and Teams plugin manifests without path validation, allowing ../, absolute, rooted, UNC, Windows drive, or URI paths in response_semantics.static_template.file to cause path traversal or out-of-package file inclusion when the generated plugin was deployed. This issue is fixed in version 1.29.1 and 1.32.5.
📍 영향받는 시스템
Kiota versions prior to 1.29.1 and 1.32.5
⚔️ 공격 벡터
OpenAPI 응답 내 x-ai-adaptive-card 또는 x-ai-capabilities 필드에 조작된 경로를 삽입하여 코드 생성 시 주입
🛡️ 대응 방법
Kiota를 버전 1.29.1 또는 1.32.5 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 1.29.1 또는 1.32.5보다 낮은지 확인하여 취약 여부를 판단합니다.
kiota version 2>/dev/null | grep -E '1(\.[0-9]+){2,}'