🇰🇷 한글 설명
Kamaji의 PostgreSQL 및 MySQL 데이터스토어 드라이버에서 사용자 입력값인 DataStoreUsername 또는 DataStoreSchema를 이스케이프 처리 없이 SQL 문에 직접 삽입하는 취약점이 발견되었습니다. 공격자는 특수 문자를 사용하여 SQL 인젝션을 수행할 수 있으며, 이는 공유 데이터스토어에 대한 Kamaji의 루트 권한으로 실행됩니다. 이 문제는 26.7.4-edge 버전에서 수정되었습니다.
💡 쉬운 설명
데이터베이스 이름이나 사용자 이름을 설정할 때 입력값 검증이 제대로 되지 않아 발생하는 보안 문제입니다. 나쁜 의도를 가진 사용자가 특수 문자를 입력하면 데이터베이스를 마음대로 조작할 수 있는 위험이 있습니다.
🇺🇸 원문 (English)
Kamaji is the Hosted Control Plane Manager for Kubernetes. Prior to 26.7.4-edge, the PostgreSQL and MySQL datastore drivers build DDL statements by interpolating the user-supplied DataStoreUsername/DataStoreSchema directly into SQL via fmt.Sprintf, without escaping identifiers. These fields have no format validation, so a value containing a quote character breaks out of the quoted identifier — SQL injection executed over Kamaji's root connection to the shared datastore. etcd driver is not affected.This issue is fixed in version 26.7.4-edge.
📍 영향받는 시스템
Kamaji 버전 26.7.4-edge 미만 (PostgreSQL 및 MySQL 드라이버 사용 시)
⚔️ 공격 벡터
DataStoreUsername 또는 DataStoreSchema 필드에 SQL 특수 문자를 삽입하여 SQL 인젝션 공격 수행
🛡️ 대응 방법
Kamaji를 26.7.4-edge 버전 이상으로 업데이트하십시오.
🔧 검증 코드
명령어 결과에 26.7.4-edge 이상의 버전이 표시되면 취약점이 해결된 상태입니다.
kamaji --version 2>/dev/null | grep -E '26.7.4-edge|higher'