WPvivid Backup & Migration - Unauthenticated Arbitrary File Upload to RCE
Run this lab
Lab not starting or behaving wrong? Report a problem with this lab
Summary
The Migration, Backup, Staging - WPvivid Backup & Migration plugin for WordPress is vulnerable to unauthenticated arbitrary file upload in versions up to and including 0.9.123. The vulnerability stems from improper error handling in the RSA decryption process combined with a lack of path sanitization when writing uploaded files. When openssl_private_decrypt() fails, execution continues and passes a boolean false value to phpseclib's AES cipher initialization, which interprets it as null bytes. This allows attackers to encrypt malicious payloads using a predictable null-byte key. Combined with unsanitized filenames that permit directory traversal, attackers can upload arbitrary PHP files to publicly accessible directories and achieve Remote Code Execution via the wpvivid_action=send_to_site parameter.
Technical detail
Impact
Successful exploitation allows unauthenticated remote attackers to upload arbitrary PHP files to the WordPress web root, achieving full Remote Code Execution (RCE) on the server. This can lead to complete site takeover, data exfiltration, backdoor installation, lateral movement within the hosting environment, and use of the compromised server for further attacks.
Exploitation & proof of concept
Precondition: wpvivid_api_token must exist in DB (migration key generated in plugin settings)
POST / HTTP/1.1 Host: {{target}} Content-Type: application/x-www-form-urlencoded wpvivid_action=send_to_site&wpvivid_content={{payload_base64}}
HTTP/1.1 200 OK {"result":"success","op":"finished"}
Nuclei detection: vt-2026-1357.nuclei.yaml
Remediation
- Upgrade WPvivid Backup & Migration plugin to version 0.9.124 or later
- Audit wp-content/uploads/ for unauthorized PHP files
- Review access logs for POST requests with wpvivid_action=send_to_site
- Consider disabling the migration key when not actively migrating
- Implement WAF rules to block wpvivid_action=send_to_site from external sources
Lab setup notes
- Start lab: docker compose up -d
- Wait for setup container to complete (~30 seconds)
- Access WordPress: http://localhost:8321
- Admin login: admin / admin
- WPvivid 0.9.123 is pre-installed and active with migration key generated
- Run nuclei: nuclei -t vt-2026-1357.nuclei.yaml -u http://localhost:8321
- Verify upload: curl http://localhost:8321/wp-content/uploads/vt-nuclei-test.txt