Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacyΒ© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2023-6553-RCE-Exploit β€” The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1.3.7 via the /includes/backup-heart.php file. | Kitploit
Tools/GitHubGitHub/0x00phantom-hat/cve-2023-6553-rce-exploit
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationPayload Development
GitHub0x00phantom-hat/cve-2023-6553-rce-exploit

CVE-2023-6553-RCE-Exploit

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1.3.7 via the /includes/backup-heart.php file.

View Repository
236 months agoNot yet reviewed

Most Popular

View all β†’

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools β†’
Share

πŸ”₯ CVE-2023-6553 β€” WordPress Backup Migration RCE

Unauthenticated Remote Code Execution via PHP Filter Chain

CVE CVSS Python License


Proof of Concept exploit for CVE-2023-6553 β€” a critical unauthenticated RCE vulnerability in the WordPress "Backup Migration" plugin (versions ≀ 1.3.7).


πŸ“‹ Vulnerability Overview

PropertyDetail
CVE IDCVE-2023-6553
CVSS Score9.8 / 10 β€” Critical
CVSS VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWECWE-94 β€” Improper Control of Generation of Code
Affected PluginBackup Migration (slug: backup-backup)
Affected Versions≀ 1.3.7
AuthenticationNone required (Unauthenticated)
Discovered ByWordfence

🧠 Technical Description

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1.3.7 via the /includes/backup-heart.php file.

The vulnerability exists because an attacker can control the values passed to a PHP include statement through the Content-Dir HTTP header. By leveraging a PHP filter chain, an attacker can inject arbitrary PHP code without authentication β€” achieving full Remote Code Execution on the server.

Case Study

https://medium.com/@phantom_hat/cve-2023-6553-wordpress-backup-migration-1-3-7-case-study-31cb8275274b

Attack Flow

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    Content-Dir Header    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    include()    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Attacker β”‚ ──── PHP Filter Chain ──▢│  backup-heart.php    β”‚ ──────────────▢ β”‚   RCE    β”‚
β”‚          β”‚    (no auth needed)      β”‚  (vulnerable file)   β”‚                 β”‚  on Host β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  1. Reconnaissance β€” Detect the installed plugin version via readme.txt
  2. Payload Generation β€” Construct a PHP filter chain that resolves to arbitrary PHP code
  3. Exploit Delivery β€” Send the crafted chain in the Content-Dir header to the vulnerable endpoint
  4. Command Execution β€” Execute OS commands through a deployed webshell

πŸ—‚οΈ Repository Structure

.
β”œβ”€β”€ exploit.py              # 🎯 Clean, professional exploit (verbose mode supported)
β”œβ”€β”€ fancy_exploit.py        # ✨ Fancy version β€” same exploit, better vibes
β”œβ”€β”€ php_filter_chain.py     # πŸ”— PHP filter chain generator module
└── README.md               # πŸ“– You are here

exploit.py β€” Professional Exploit

The primary, clean exploit script designed for professional use in security assessments and case studies. Features include:

  • Clean, structured terminal output using Rich
  • Phased execution (Recon β†’ Payload β†’ Delivery β†’ Execution)
  • Verbose mode (-v) for detailed operational output
  • Vulnerability check-only mode (-C)
  • Exploit summary table on completion

fancy_exploit.py β€” The Fancy Version ✨

A more expressive version of the same exploit with extra personality. Functionally identical to exploit.py but with a much more colorful presentation:

  • 🎨 Colorful, rainbow-styled terminal output
  • 🎭 Random kaomoji reactions (success, failure, attack faces)
  • πŸ–ΌοΈ ASCII art banner
  • πŸ’Ž Emoji-enhanced logging (πŸ’€ errors, ✨ successes, πŸ”₯ attack phases)
  • πŸ“Š Styled mission report summary with emoji indicators

Note: Both scripts share identical attack logic β€” fancy_exploit.py simply wraps the experience in a more visually expressive output layer.


βš™οΈ Installation

Prerequisites

  • Python 3.8+
  • pip package manager

Setup

# Clone the repository
git clone https://github.com/<your-username>/CVE-2023-6553.git
cd CVE-2023-6553

# Install dependencies
pip install -r requirements.txt

Note: php_filter_chain.py is a local module included in the repository β€” no additional installation needed.


πŸš€ Usage

exploit.py

exploit
# Check if a target is vulnerable (recon only)
python3 exploit.py -u http://target.com -C

# Exploit and execute a command
python3 exploit.py -u http://target.com -c id

# Check vulnerability first, then exploit
python3 exploit.py -u http://target.com -C -c whoami

# Verbose mode for detailed output
python3 exploit.py -u http://target.com -c id -v

fancy_exploit.py

fancy_exploit
# Check if a target is vulnerable
python3 fancy_exploit.py -u http://target.com -C

# Exploit and execute a command
python3 fancy_exploit.py -u http://target.com -c id

# Check first, then exploit if vulnerable
python3 fancy_exploit.py -u http://target.com -C -c whoami

Command-Line Flags

FlagDescription
-u, --url(Required) Target WordPress URL
-c, --commandOS command to execute post-exploitation
-C, --checkCheck vulnerability status without exploiting
-v, --verboseEnable verbose output (exploit.py only)

πŸ“Έ Exploit Phases

PhaseNameDescription
1πŸ” ReconnaissanceFetches readme.txt to detect the installed plugin version
2πŸ§ͺ Payload GenerationBuilds a PHP filter chain that decodes to a webshell dropper
3πŸ’£ Exploit DeliverySends the payload to backup-heart.php via Content-Dir header
4πŸš€ Command ExecutionTriggers the deployed webshell with the specified OS command

πŸ”— References

  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-6553
  • Wordfence Advisory: https://www.wordfence.com/threat-intel/vulnerabilities/id/3511ba64-56a3-43d7-8ab8-c6e40e3b686e
  • Vulnerable Source (L118): https://plugins.trac.wordpress.org/browser/backup-backup/tags/1.3.7/includes/backup-heart.php#L118
  • PHP Filter Chains (Synacktiv): https://www.synacktiv.com/en/publications/php-filters-chain-what-is-it-and-how-to-use-it
  • PacketStorm: http://packetstormsecurity.com/files/176638/WordPress-Backup-Migration-1.3.7-Remote-Command-Execution.html
  • Patch Changeset: https://plugins.trac.wordpress.org/changeset?old=3006541%40backup-backup&new=3006541%40backup-backup

πŸ›‘οΈ Remediation

  • Update the Backup Migration plugin to version 1.3.8 or later
  • Remove the plugin entirely if it is not in active use
  • Implement a Web Application Firewall (WAF) rule to block suspicious Content-Dir headers
  • Audit server logs for indicators of prior exploitation

⚠️ Disclaimer

Download Tool