Skip to content
RCE Write-up Intermediate

Analysis & PoC for CVE-2023-6553

The Backup Migration plugin passed an HTTP header value into a file include without validation, allowing an unauthenticated attacker to include a remote file and execute code. The author built a proof of concept based on the public advisory.

Hazem Hussien Follow

Published on hazemhussien99.wordpress.com

After reading this blog post for CVE-2023-6553 (https://www.wordfence.com/blog/2023/12/critical-unauthenticated-remote-code-execution-found-in-backup-migration-plugin/) i was motivated to create a PoC for it.

Hazem Hussien, on hazemhussien99.wordpress.com

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 concatenated the attacker-controlled content-dir header into a path passed to require_once without validation, enabling local or remote file inclusion.

Impact

An unauthenticated attacker could achieve remote code execution on a vulnerable WordPress site, as the original advisory describes.

What the attacker needed

Vulnerable Backup Migration plugin; network access to the site

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.

A WordPress plugin took a value from an HTTP request header and used it to decide which file to load, without checking it. Because the value was not checked, an attacker could point it at a file they control and make the server run their code. This is called remote code execution, meaning the attacker can run their own commands on 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.

More by Hazem Hussien

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.