🇰🇷 한글 설명
PostgreSQL과 PostGIS를 사용하는 Directus 환경에서 인증된 사용자가 컬렉션을 생성할 때 SQL 인젝션이 발생할 수 있습니다. 관리자가 geometry 필드를 생성할 때 특정 서브타입 뒤에 악의적인 SQL 구문을 삽입하여 데이터베이스를 조작할 수 있습니다. 이 취약점은 Directus 12.1.0 미만 버전에서 영향을 받습니다.
💡 쉬운 설명
관리자 권한을 가진 사용자가 데이터베이스에 몰래 명령어를 심어 정보를 빼내거나 조작할 수 있는 결함입니다. 지도 관련 기능을 사용할 때 발생하는 보안 약점입니다.
🇺🇸 원문 (English)
Directus contains an authenticated SQL injection vulnerability in the collection creation flow when the instance uses PostgreSQL with PostGIS enabled. An administrator can create a collection with a geometry field whose fields[].type value starts with geometry but contains attacker-controlled SQL syntax after the geometry subtype.This issue affects Directus: before 12.1.0.
📍 영향받는 시스템
Directus 12.1.0 미만 버전 (PostgreSQL 및 PostGIS 사용 시)
⚔️ 공격 벡터
인증된 관리자가 컬렉션 생성 시 geometry 필드의 subtype 값에 악의적인 SQL 구문을 삽입하여 공격
🛡️ 대응 방법
Directus를 최신 보안 패치가 적용된 12.1.0 이상의 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 12.1.0보다 낮으면 취약한 상태입니다.
npm list directus | grep -E 'directus@([0-9]+\.[0-9]+\.[0-9]+)'