Exploit database

Vulnerability

CVE-2019-25224

WP Database Backup < 5.2 - Unauthenticated OS Command Injection

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · Wordfence

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Description

The WP Database Backup plugin for WordPress is vulnerable to OS Command Injection in versions before 5.2 via the mysqldump function. This vulnerability allows unauthenticated attackers to execute arbitrary commands on the host operating system.

CVE Program

Exploit source choices

1 source
WP Database Backup RCE
MSF-multi--http--wp_db_backup_rceMetasploitLinux,Windows / remotePreferred

There exists a command injection vulnerability in the Wordpress plugin `wp-database-backup` for versions < 5.2. For the backup functionality, the plugin generates a `mysqldump` command to execute. The user can choose specific tables to exclude from the backup by setting the `wp_db_exclude_table` parameter in a POST request to the `wp-database-backup` page. The names of the excluded tables are included in the `mysqldump` command unsanitized. Arbitrary commands injected through the `wp_db_exclude_table` parameter are executed each time the functionality for creating a new database backup are run. Authentication is required to successfully exploit this vulnerability.

2019-04-24wp_db_backup_rce.rb