CVE-2023–6553 WordPress Backup Migration ≤1.3.7 Case Study
The WordPress Backup Migration plugin used attacker-controlled HTTP headers to define file paths, allowing an unauthenticated attacker to include arbitrary files. By using a PHP filter chain, an attacker could turn this local file inclusion into remote code execution.
medium.com
Published on medium.com
The case study focuses on the CVE-2023–6553 vulnerability, discovered by the NEX Team, which exploits the WordPress Backup Migration plugin for version 1.3.7 and below. The CVSS score is 9.8, making this flaw critical for the target software.
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
The plugin defined file path constants directly from unsanitised HTTP header values and later used them in a require_once call.
Impact
An unauthenticated attacker could execute arbitrary OS commands on the server, though command output is not returned directly and must be confirmed by other means.
What the attacker needed
Target runs Backup Migration 1.3.7 or below; No authentication required; Ability to send custom HTTP headers
The fix
The plugin was fixed in version 1.3.8 by adding a validation function that rejects overly long values, values containing php: or |, and paths that do not exist.
How it was found
- Navigate to the plugin endpoint backup-heart.php.
- Change the request method to POST.
- Add a Content-Dir header containing a generated PHP filter chain.
- Send a POST parameter with the OS command to execute.
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 trusted values in HTTP headers, which anyone can set, to decide which file to load. An attacker could point it at a special PHP stream that builds and runs their own code, giving them control of the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.