The InstaWP Connect plugin for WordPress through 0.1.0.38 is vulnerable to unauthenticated arbitrary file upload via the standalone migration receiver dest.php, which writes the raw request body to an attacker-controlled path with no file type validation. The write is gated only by an api_signature that the plugin stores in a plaintext, world-readable migrate-push-db-<prefix>.json file, allowing an unauthenticated attacker to drop a PHP web shell and achieve remote code execution. This template confirms a vulnerable dest.php is deployed and reachable by its pre-fix "JSON file not found" response; version 0.1.0.39 encrypts the migration metadata and returns a different message.
id: CVE-2024-37228
info:
name: InstaWP Connect <= 0.1.0.38 - Unauthenticated Arbitrary File Upload
author: DhiyaneshDk
severity: critical
description: |
The InstaWP Connect plugin for WordPress through 0.1.0.38 is vulnerable to unauthenticated arbitrary file upload via the standalone migration receiver dest.php, which writes the raw request body to an attacker-controlled path with no file type validation. The write is gated only by an api_signature that the plugin stores in a plaintext, world-readable migrate-push-db-<prefix>.json file, allowing an unauthenticated attacker to drop a PHP web shell and achieve remote code execution. This template confirms a vulnerable dest.php is deployed and reachable by its pre-fix "JSON file not found" response; version 0.1.0.39 encrypts the migration metadata and returns a different message.
impact: |
An unauthenticated attacker can upload a PHP web shell and achieve remote code execution, and can disclose the database credentials.
remediation: |
Update the InstaWP Connect plugin to version 0.1.0.39 or later, which encrypts the migration metadata file.
reference:
- https://patchstack.com/database/vulnerability/instawp-connect/wordpress-instawp-connect-plugin-0-1-0-38-arbitrary-file-upload-vulnerability
- https://nvd.nist.gov/vuln/detail/CVE-2024-37228
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2024-37228
epss-score: 0.01862
epss-percentile: 0.79953
cwe-id: CWE-434
cpe: cpe:2.3:a:instawp:instawp_connect:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 1
vendor: instawp
product: instawp_connect
framework: wordpress
fofa-query: body="/wp-content/plugins/instawp-connect/"
publicwww-query: "/wp-content/plugins/instawp-connect/"
tags: cve,cve2024,wp-plugin,wp,wordpress,instawp,instawp-connect,file-upload,rce,unauth,vkev
http:
- raw:
- |
POST /wp-content/plugins/instawp-connect/dest.php HTTP/1.1
Host: {{Hostname}}
X-IWP-MIGRATE-KEY: {{to_lower(rand_text_alpha(6))}}
Content-Type: application/octet-stream
1
matchers-condition: and
matchers:
- type: word
part: header
words:
- "Error: JSON file not found"
- type: status
status:
- 200
# digest: 4a0a0047304502203e1623d2259b1a241d07e03975ba3dafb79803c669bfc0a7544f86c61a860591022100d78e1fa57c1456b6eedf8a961bc356177ca390e4a18510fa02a35435ac0b118d:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.