Exploit database

Vulnerability

CVE-2024-8856

Backup and Staging by WP Time Capsule <= 1.22.21 - Unauthenticated Arbitrary File Upload

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 Backup and Staging by WP Time Capsule plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the the UploadHandler.php file and no direct file access prevention in all versions up to, and including, 1.22.21. This makes it possible for unauthenticated attackers to upload arbitrary files on the affected site's server which may make remote code execution possible.

CVE Program

Exploit source choices

3 sources
WordPress WP Time Capsule Arbitrary File Upload to RCE
MSF-multi--http--wp_time_capsule_file_upload_rceMetasploitLinux,PHP,Unix,Windows / remote

This module exploits an arbitrary file upload vulnerability in the WordPress WP Time Capsule plugin (versions <= 1.22.21). The vulnerability allows uploading a malicious PHP file to achieve remote code execution (RCE). The validation logic in the vulnerable function improperly checks for allowed extensions. If no valid extension is found, the check can be bypassed by using a filename of specific length (e.g., "00.php") matching the length of allowed extensions like ".crypt".

2024-11-15wp_time_capsule_file_upload_rce.rb
jenderal92/cve-2024-8856
GH-369ef1bebb3eb8cdc93e2b529587f371GitHubUnofficial GitHub source

This tool scans WordPress websites for vulnerabilities in the WP Time Capsule plugin related to CVE-2024-8856. It identifies plugin versions below 1.22.22 as vulnerable and logs results to vuln.txt. Simple and efficient, it helps security researchers and admins detect and address risks quickly.

2024-11-212 files · 2 stars