🇰🇷 한글 설명
EM Beer Manager 플러그인의 EMBM_Admin_Untappd_Import_image() 함수에서 파일 유형 검증이 누락되어 있어, 구독자 이상 권한의 인증된 사용자가 PHP 파일을 업로드할 수 있습니다. wp_ajax_embm-untappd-import 액션에 대한 권한 확인이 없어, 공격자는 특정 JSON 데이터로 응답하는 모의 HTTP 서버를 이용하여 서버에서 임의의 코드 실행이 가능합니다.
💡 쉬운 설명
WordPress의 EM Beer Manager 플러그인이 파일을 업로드할 때 어떤 종류의 파일인지 확인하지 않아 위험한 파일도 올릴 수 있습니다. 사용자 권한이 있는 사람이면 누구나 이것을 이용해 서버에서 명령어를 실행할 수 있습니다.
🇺🇸 원문 (English)
The EM Beer Manager plugin for WordPress is vulnerable to arbitrary file upload leading to remote code execution in all versions up to, and including, 3.2.3. This is due to missing file type validation in the EMBM_Admin_Untappd_Import_image() function and missing authorization checks on the wp_ajax_embm-untappd-import action. This makes it possible for authenticated attackers, with subscriber-level access and above, to upload arbitrary files including PHP files and execute code on the server granted they can provide a mock HTTP server that responds with specific JSON data.
📍 영향받는 시스템
EM Beer Manager 플러그인 버전 3.2.3 이하 (WordPress)
⚔️ 공격 벡터
구독자 이상 권한으로 wp_ajax_embm-untappd-import 액션에 접근하여 검증되지 않은 PHP 파일 업로드
🛡️ 대응 방법
EM Beer Manager 플러그인을 3.2.4 이상으로 업그레이드
🔧 검증 코드
결과가 나타나면 취약한 플러그인이 설치되어 있고, 아무것도 나타나지 않으면 플러그인이 설치되지 않았거나 이미 패치된 버전입니다.
find /var/www/html/wp-content/plugins -name '*.php' -type f -exec grep -l 'EMBM_Admin_Untappd_Import_image' {} \; 2>/dev/null