🇰🇷 한글 설명
WordPress의 'WP Import – Ultimate CSV XML Importer' 플러그인 버전 7.37 이하에서 파일 업로드 시 `file_name` 파라미터의 부족한 이스케이핑으로 인한 SQL Injection 취약점이 존재합니다. 인증된 Subscriber 레벨 이상의 사용자가 악의적인 파일명을 통해 SQL 쿼리를 조작하여 데이터베이스의 민감한 정보를 탈취할 수 있습니다. 이 취약점은 Single Import/Export 옵션이 활성화되고 PHP 버전이 8.0 미만일 때만 악용 가능합니다.
💡 쉬운 설명
WordPress 플러그인에서 파일을 업로드할 때 파일 이름을 제대로 검사하지 않아 악의적인 파일명으로 데이터베이스 정보를 빼낼 수 있습니다. Subscriber 계정만 있으면 누구나 공격할 수 있습니다.
🇺🇸 원문 (English)
The WP Import – Ultimate CSV XML Importer for WordPress plugin for WordPress is vulnerable to SQL Injection in all versions up to, and including, 7.37. This is due to insufficient escaping on the `file_name` parameter which is stored in the database during file upload and later used in raw SQL queries without proper sanitization. This makes it possible for authenticated attackers with Subscriber-level access or higher to append additional SQL queries into already existing queries via a malicious filename, which can be used to extract sensitive information from the database. The vulnerability can only be exploited when the 'Single Import/Export' option is enabled, and the server is running a PHP version < 8.0.
📍 영향받는 시스템
WP Import – Ultimate CSV XML Importer 플러그인 v7.37 이하 (PHP < 8.0, Single Import/Export 활성화 시)
⚔️ 공격 벡터
Subscriber 레벨 권한으로 로그인 후 Single Import/Export에서 SQL 쿼리를 포함한 악의적 파일명으로 파일 업로드
🛡️ 대응 방법
플러그인을 v7.38 이상으로 업데이트하거나 Single Import/Export 옵션을 비활성화하고 PHP를 8.0 이상으로 업그레이드
🔧 검증 코드
플러그인이 설치되어 있으면 버전 번호가 표시되고, 7.37 이하이면 취약한 상태입니다.
wp plugin list --field=name | grep -i 'wp-import' && wp plugin get wp-import-ultimate-csv-xml-importer --field=version