🇰🇷 한글 설명
WordPress Mega Menu 플러그인 2.0.6 이하 버전의 compiler_save AJAX 액션에서 인증 없이 임의 파일을 생성할 수 있는 취약점입니다. 공격자가 악성 PHP 파일을 생성하여 서버에서 코드를 실행할 수 있습니다.
💡 쉬운 설명
WordPress Mega Menu라는 메뉴 플러그인이 누구나 파일을 만들 수 있는 결함이 있어서, 해커가 악성 파일을 업로드해서 웹사이트를 장악할 수 있습니다. 로그인 없이도 공격이 가능해서 매우 위험합니다.
🇺🇸 원문 (English)
The WordPress Mega Menu plugin for WordPress is vulnerable to Arbitrary File Creation in versions up to, and including, 2.0.6 via the compiler_save AJAX action. This makes it possible for unauthenticated attackers to create arbitrary PHP files that can be used to execute malicious code.
📍 영향받는 시스템
WordPress Mega Menu 플러그인 버전 2.0.6 이하
⚔️ 공격 벡터
compiler_save AJAX 액션에 대한 POST 요청으로 PHP 파일을 생성하여 원격 코드 실행
🛡️ 대응 방법
플러그인을 2.0.7 이상으로 업그레이드하거나 플러그인 제거
🔧 검증 코드
명령어가 2.0.6 이하의 버전을 반환하면 취약합니다. 버전이 2.0.7 이상이거나 디렉토리가 없으면 안전합니다.
find /var/www -name 'wp-content/plugins/mega-menu' -type d 2>/dev/null | head -1 && grep -r 'Version: ' /var/www/html/wp-content/plugins/mega-menu/megamenu.php 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+'