🔍 CVE-2026-9834

7.2
CVSS Score
HIGH
2026-07-02
2026-07-02 13:58
✅ 완료

🇰🇷 한글 설명

WordPress용 'WP Database Backup' 플러그인의 모든 버전(7.11 이하)에서 OS 명령 주입 취약점이 발견되었습니다. `wp_db_exclude_table` 파라미터가 적절한 이스케이프 처리 없이 `mysqldump` 명령에 직접 전달되어, 관리자 권한을 가진 공격자가 서버에서 임의의 명령을 실행할 수 있습니다. 이 취약점은 설정값이 데이터베이스에 저장된 후 백업 실행 시 호출되는 저장형(Stored) 공격 형태를 띱니다.

💡 쉬운 설명

플러그인 설정값에 악성 명령어를 숨겨두면, 나중에 백업이 실행될 때 서버가 그 명령어를 그대로 실행해버리는 문제입니다. 이를 통해 해커가 서버의 제어권을 완전히 탈취할 수 있습니다.

🇺🇸 원문 (English)

The WP Database Backup – Unlimited Database & Files Backup by Backup for WP plugin for WordPress is vulnerable to OS Command Injection in all versions up to and including 7.11 via the `wp_db_exclude_table` parameter. This is due to the direct concatenation of user-supplied `$_POST['wp_db_exclude_table']` values into the `mysqldump` shell command string in the `mysqldump()` function of `includes/admin/class-wpdb-admin.php` without wrapping them in `escapeshellarg()`—every other argument in the same command (DB_USER, DB_PASSWORD, host, filename, DB_NAME) is properly escaped, making the exclude-table values the sole exception—and because the only applied filtering, `sanitize_text_field()` via `recursive_sanitize_text_field()`, strips HTML tags but leaves shell metacharacters such as `;`, `|`, `` ` ``, and `$()` intact. This makes it possible for authenticated attackers, with administrator-level access and above, to execute arbitrary operating system commands on the server, potentially enabling full remote code execution. The injection is stored: malicious values submitted through the plugin settings form are persisted to the WordPress options table via `update_option('wp_db_exclude_table')` and later retrieved with `get_option()` and passed unsanitized to `shell_exec()` whenever a backup operation runs.

📍 영향받는 시스템

WP Database Backup – Unlimited Database & Files Backup plugin (v7.11 및 그 이하 모든 버전)

⚔️ 공격 벡터

관리자 권한을 가진 공격자가 플러그인 설정의 'exclude table' 필드에 셸 메타문자(;, |, ` 등)를 포함한 명령어를 입력하여 저장함

🛡️ 대응 방법

해당 플러그인을 최신 버전으로 업데이트하거나, 취약한 파라미터에 대해 escapeshellarg() 함수를 적용하도록 패치해야 합니다.

🔧 검증 코드

명령어 결과에 해당 플러그인이 나타나고 버전이 7.11 이하인 경우 취약할 가능성이 높습니다.

Shell / Script
wp-cli plugin list --allow-root | grep -E 'backup-for-wp|wp-database-backup'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

UniFi OS Server