🇰🇷 한글 설명
WordPress URL Image Importer 플러그인이 파일 타입 검증 부족으로 인한 임의 파일 업로드 취약점을 가지고 있습니다. Content-Type 헤더만 검증하고 서버에 파일을 먼저 쓴 후 검증하여, Author 이상 권한의 인증된 사용자가 임의 파일(특히 PHP)을 업로드하여 원격 코드 실행이 가능합니다.
💡 쉬운 설명
WordPress 플러그인이 업로드되는 파일의 타입을 제대로 확인하지 않아서 악의적인 PHP 파일을 업로드할 수 있습니다. 웹사이트 작성 권한이 있는 사용자가 이 파일을 실행시키면 서버를 완전히 장악할 수 있습니다.
🇺🇸 원문 (English)
The URL Image Importer plugin for WordPress is vulnerable to arbitrary file uploads due to insufficient file type validation in all versions up to, and including, 1.0.6. This is due to the plugin relying on a user-controlled Content-Type HTTP header to validate file uploads in the 'uimptr_import_image_from_url()' function which writes the file to the server before performing proper validation. This makes it possible for authenticated attackers, with Author-level access and above, to upload arbitrary files on the affected site's server which may make remote code execution possible via the uploaded PHP file.
📍 영향받는 시스템
URL Image Importer 플러그인 1.0.6 이하 모든 버전
⚔️ 공격 벡터
Author 이상 권한의 인증된 사용자가 조작된 PHP 파일을 uimptr_import_image_from_url() 함수를 통해 업로드
🛡️ 대응 방법
플러그인을 1.0.7 이상으로 업데이트하거나 더 이상 필요 없으면 제거
🔧 검증 코드
플러그인이 목록에 나타나면 버전을 확인하여 1.0.6 이하이면 즉시 업데이트 필요
wp plugin list --format=table 2>/dev/null | grep -i 'url-image-importer'