The 12-Character Backdoor: How One Static Key in All-in-One WP Migration Leaks to Logs and Browsers Alike
The All-in-One WP Migration plugin protects its unauthenticated import endpoint with a static 12-character key that is sent in GET parameters and rendered into the admin page, so anyone with log access or page access can obtain it. With that key, an attacker can upload a crafted archive containing a PHP file and achieve remote code execution as the web server user.
On April 15, 2026, I was auditing the authentication model of All-in-One WP Migration and Backup (AIOWPM) — one of the most popular backup plugins in the WordPress ecosystem, with roughly 5 million reported downloads. What I found isn’t a shiny CVSS 10.0 remote-unauth RCE, and I want to be upfront about that from the…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the plugin relies on a single static secret for authentication, transmits it in URLs and page source, and extracts archive contents without excluding executable file types.
Impact
An attacker with the leaked key could upload a malicious archive and execute arbitrary commands as the web server user; the key never rotates, so the exposure persists indefinitely.
What the attacker needed
Access to logs or admin page; ability to send HTTP requests; no WordPress account needed
The fix
The plugin should rotate the secret, avoid sending it in URLs or embedding it in page source, and filter executable file extensions during archive extraction.
How it was found
- An administrator runs an export or import, causing the key to appear in access logs as a query parameter.
- Someone with log access extracts the key from the logs.
- The attacker builds a malicious archive containing a PHP webshell.
- The attacker uploads the archive to the unauthenticated import endpoint using only the leaked key.
- The archive extracts the PHP file into a web-accessible directory.
- The attacker requests the uploaded PHP file to execute commands.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The plugin uses one fixed password (a 'secret key') to guard a feature that lets someone upload a backup file. That password is written into web server logs and into the HTML of an admin page, so many people who are not site administrators can see it. Once they have it, they can upload a file that runs commands on the server, because the upload feature does not check what kind of files are inside the backup.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.