{"id":22256,"date":"2025-04-12T16:58:23","date_gmt":"2025-04-12T16:58:23","guid":{"rendered":""},"modified":"2025-05-11T06:21:45","modified_gmt":"2025-05-11T06:21:45","slug":"cve-2021-24566-local-file-inclusion-vulnerability-in-woocommerce-currency-switcher-fox-wordpress-plugin","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2021-24566-local-file-inclusion-vulnerability-in-woocommerce-currency-switcher-fox-wordpress-plugin\/","title":{"rendered":"<strong>CVE-2021-24566: Local File Inclusion Vulnerability in WooCommerce Currency Switcher FOX WordPress Plugin<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>The cybersecurity landscape is continually evolving with new vulnerabilities being discovered regularly. One such recent discovery is the CVE-2021-24566 vulnerability that affects the WooCommerce Currency Switcher FOX WordPress plugin. If unpatched, this <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-2780-critical-arbitrary-file-upload-vulnerability-in-woffice-core-plugin-for-wordpress\/\"  data-wpil-monitor-id=\"27346\">vulnerability can lead to Local File<\/a> Inclusion (LFI) attacks, potentially compromising the system or leaking sensitive data.<br \/>\nThis <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-2941-arbitrary-file-moving-vulnerability-in-woocommerce-plugin-for-wordpress\/\"  data-wpil-monitor-id=\"28958\">vulnerability is significant because of the popularity of WooCommerce<\/a>, a widely-used eCommerce plugin on WordPress. The Currency Switcher FOX extension for WooCommerce is used by online businesses across the globe to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-24252-critical-memory-management-flaw-in-multiple-macos-and-tvos-versions\/\"  data-wpil-monitor-id=\"41799\">manage multiple<\/a> currencies on their websites. This makes it a high-value target for attackers looking to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-47992-critical-buffer-overflow-vulnerability-exploit-in-freeimage-library\/\"  data-wpil-monitor-id=\"25598\">exploit the vulnerability<\/a> for malicious gain.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2021-24566<br \/>\nSeverity: High (CVSS: 8.8)<br \/>\nAttack Vector: Network<br \/>\nPrivileges Required: Low<br \/>\nUser Interaction: Required<br \/>\nImpact: <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2024-0576-critical-vulnerability-in-totolink-lr1200gb-leading-to-potential-system-compromise\/\"  data-wpil-monitor-id=\"29406\">Potential system<\/a> compromise or data leakage<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-4207933927\" 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>WooCommerce Currency Switcher FOX <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-3211-unauthenticated-sql-injection-vulnerability-in-wordpress-database-administrator-plugin\/\"  data-wpil-monitor-id=\"29981\">WordPress Plugin<\/a> | Before 1.3.7<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>The exploit takes advantage of a vulnerability in the &#8220;woocs&#8221; shortcode of the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-2005-critical-vulnerability-in-the-wordpress-plugin-front-end-users-feup\/\"  data-wpil-monitor-id=\"26012\">WooCommerce Currency Switcher FOX WordPress<\/a> plugin that allows for Local File Inclusion (LFI). An attacker can manipulate the input parameters of this shortcode to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-49589-the-critical-remote-code-execution-vulnerability-targeting-web-based-applications\/\"  data-wpil-monitor-id=\"26038\">execute arbitrary PHP code<\/a> or include local files from the server, leading to potential system compromise or data leakage.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-4244048795\" 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>An <a href=\"https:\/\/www.ameeba.com\/blog\/unmasking-tcesb-malware-a-deep-analysis-of-active-attacks-exploiting-eset-security-scanner\/\"  data-wpil-monitor-id=\"27054\">attacker could potentially exploit<\/a> the vulnerability by sending a specially crafted HTTP request. Here&#8217;s a conceptual example:<\/p>\n<pre><code class=\"\" data-line=\"\">POST \/wp-content\/plugins\/woocommerce-currency-switcher-fox\/ HTTP\/1.1\nHost: target.example.com\nContent-Type: application\/json\n{ &quot;woocs&quot;: &quot;..\/..\/..\/..\/wp-config&quot; }<\/code><\/pre>\n<p>In this example, the attacker is trying to access the &#8216;wp-config&#8217; file, a <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-6991-critical-ssrf-vulnerability-in-jsm-s-file-get-contents-shortcode-wordpress-plugin\/\"  data-wpil-monitor-id=\"27332\">critical file in WordPress<\/a> installations that contains sensitive information such as database credentials.<\/p>\n<p><strong>Mitigation<\/strong><\/p>\n<p>To <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-51063-understanding-and-mitigating-a-dom-based-xss-vulnerability-in-qstar-archive-solutions\/\"  data-wpil-monitor-id=\"27053\">mitigate the risks associated with this vulnerability<\/a>, users of the WooCommerce Currency Switcher FOX WordPress plugin should immediately update to version 1.3.7 or later, which includes a patch for the vulnerability. If an immediate update is not possible, temporary mitigation can be achieved by using a Web 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 The cybersecurity landscape is continually evolving with new vulnerabilities being discovered regularly. One such recent discovery is the CVE-2021-24566 vulnerability that affects the WooCommerce Currency Switcher FOX WordPress plugin. If unpatched, this vulnerability can lead to Local File Inclusion (LFI) attacks, potentially compromising the system or leaking sensitive data. This vulnerability is significant because [&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-22256","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\/22256","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=22256"}],"version-history":[{"count":11,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/22256\/revisions"}],"predecessor-version":[{"id":37113,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/22256\/revisions\/37113"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=22256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=22256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=22256"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=22256"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=22256"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=22256"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=22256"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=22256"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=22256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}