{"id":20750,"date":"2025-10-29T13:36:29","date_gmt":"2025-10-29T13:36:29","guid":{"rendered":"https:\/\/cloudkul.com\/blog\/?p=20750"},"modified":"2025-10-29T13:36:33","modified_gmt":"2025-10-29T13:36:33","slug":"serious-file-read-exploit-in-uicore-elements","status":"publish","type":"post","link":"https:\/\/cloudkul.com\/blog\/serious-file-read-exploit-in-uicore-elements\/","title":{"rendered":"Serious File Read Exploit in UiCore Elements Plugin"},"content":{"rendered":"\n<div class=\"wp-block-cover\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\"><\/span><img loading=\"lazy\" decoding=\"async\" width=\"670\" height=\"380\" class=\"wp-block-cover__image-background wp-image-20752\" alt=\"image-3\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2025\/10\/image-3.png\" data-object-fit=\"cover\" \/><div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\">\n<p class=\"has-text-align-center has-large-font-size\"><\/p>\n<\/div><\/div>\n\n\n\n<p>A critical security flaw was recently discovered in the <strong><a href=\"https:\/\/wordpress.org\/plugins\/uicore-elements\/\">UiCore Elements<\/a><\/strong> WordPress plugin <strong>(<strong>\u2264<\/strong>1.3.0)<\/strong>, which is used on over 40,000 websites, lets attackers <strong>Read<\/strong> <strong>Arbitrary File (LFI)<\/strong> on affected server.<\/p>\n\n\n\n<p><strong>UiCore Elements<\/strong> is a free <strong>Elementor addon<\/strong> that enhances the page builder with extra widgets, pre-built sections, and templates for easy drag-and-drop WordPress design.<\/p>\n\n\n\n<p>So let&#8217;s understand this vulnerability, how it works, its impact on your website, and also security measures to prevent your website from this vulnerability.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What is a UiCore Elements Plugin?<\/strong><\/h2>\n\n\n\n<p><strong>UiCore Elements<\/strong> is a free Elementor addon designed to extend the functionality of the Elementor page builder. <\/p>\n\n\n\n<p>UiCore Elements acts as a design booster for Elementor users, helping them save time and create visually appealing websites more efficiently.<\/p>\n\n\n\n<p>Like other Elementor add-ons, it helps users create professional websites without coding by importing ready-made templates, sections, and extra design widgets.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What is Arbitrary File Read Vulnerability?<\/strong><\/h2>\n\n\n\n<p>An <strong>Arbitrary File Read<\/strong> <strong>(LFI &#8211; Local File Inclusion)<\/strong> vulnerability happens when a web application allows a user to read files from the server that they shouldn\u2019t normally have access to.<\/p>\n\n\n\n<p>Normally, a website should only give access to its public files (like images, CSS, JS). <\/p>\n\n\n\n<p>If an app accepts a user-provided filename or path without validation, an attacker can supply arbitrary paths to read sensitive server files, enabling Local File Read\/Arbitrary File Read exploits.<\/p>\n\n\n\n<p>Common target files are : <strong>wp-config.php<\/strong> (WordPress), Backup Files, logs, config files and other sensitive server files.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How does this Vulnerability work?<\/strong><\/h2>\n\n\n\n<p>The plugin exposed a public endpoint for handling template imports that calls the <strong>prepare_template()<\/strong> function. Unfortunately, this endpoint <strong>lacked proper authentication and input validation<\/strong>. <\/p>\n\n\n\n<p>The handler also failed to strictly validate the <strong>filename<\/strong> parameter. letting attackers send crafted requests to access any server file without logging in.<\/p>\n\n\n\n<p>Since <strong>prepare_template()<\/strong> accepts a filename via POST request, an attacker could supply a path like <strong>..\/..\/wp-config.php <\/strong>instead of a valid template or image filename to access sensitive files.<\/p>\n\n\n\n<p>The import\/template logic calls image\/template import routines that read the provided path. Because validation is insufficient, the code reads the specified server file.<\/p>\n\n\n\n<p>If the endpoint returns the file contents or an error revealing contents, the attacker obtains secrets such as DB credentials, salts, or API keys. <\/p>\n\n\n\n<p>With those secrets, the attacker can escalate to admin privilege and perform any other malicious actions<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2025\/10\/image-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"774\" height=\"350\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2025\/10\/image-4.png\" alt=\"Arbitrary file read vulnerability\" class=\"wp-image-20753\" \/><\/a><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\"><strong>Impact of this Vulnerability on the website<\/strong><\/h2>\n\n\n\n<p>This vulnerability can cause several impacts on any websites mentioned below;<\/p>\n\n\n\n<ul>\n<li>Read database credentials from <strong>wp-config.php,<\/strong> connect to the DB, dump users, or reset admin passwords.<\/li>\n\n\n\n<li>Steal API keys and tokens stored in config or backup files.<\/li>\n\n\n\n<li>Deploy persistent backdoors by modifying files after gaining credentials.<\/li>\n\n\n\n<li>Can Access to other sites on the same host if credentials or keys are reused.<\/li>\n\n\n\n<li>As the endpoint was unauthenticated, the attack can be automated and mass-scanned.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What are the Security Flaws in this plugin?<\/strong><\/h2>\n\n\n\n<ul>\n<li><strong>Missing Authorization Checks : <\/strong><br>The <strong>REST API <\/strong>endpoint is registered with a permission callback that returns <code><strong>true<\/strong><\/code>, so it has no authentication or permission checks and is publicly accessible.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2025\/10\/image-5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"609\" height=\"176\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2025\/10\/image-5.png\" alt=\"image-5\" class=\"wp-image-20754\" \/><\/a><\/figure><\/div>\n\n\n<ul>\n<li><strong>Arbitrary File Read (LFI) : <\/strong><br><strong>prepare_template() <\/strong>accepts a filename via a public endpoint with no capability checks, nonce, or filename validation\u2014allowing unauthenticated path\u2011traversal to read arbitrary server files.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2025\/10\/image-7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"689\" height=\"262\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2025\/10\/image-7.png\" alt=\"Arbitrary file read vulnerability\" class=\"wp-image-20756\" \/><\/a><\/figure><\/div>\n\n\n<ul>\n<li><strong>Insufficient Filename Validation : <\/strong><br>The plugin lacks filename and extension checks, allowing attackers to request local files and read their contents.<\/li>\n\n\n\n<li><strong>Weak Interaction with Third-party Importers (Elementor) : <\/strong><br>UiCore\u2019s prepare_template() uses Elementor\u2019s import() which lacks file-type checks, letting attackers upload .php files and access sensitive data.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Prevent your website from this vulnerability?<\/strong><\/h2>\n\n\n\n<p>To prevent your website from this vulnerability, you can follow any of the techniques mentioned below;<\/p>\n\n\n\n<ol>\n<li><strong>Update UiCore Elements Plugin: <\/strong>Update UiCore Elements to version 1.3.1 or higher via WordPress Admin to fix the security flaw.<\/li>\n<\/ol>\n\n\n\n<p>To upgrade to the latest version, go to WordPress <strong>Admin Dashboard<\/strong> <strong>\u2192<\/strong> <strong>Plugins \u2192 UiCore Elements \u2192 <\/strong>Click on <strong>Update (As shown in the screenshot below).<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2025\/10\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"773\" height=\"128\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2025\/10\/image-6.png\" alt=\"image-6\" class=\"wp-image-20755\" \/><\/a><\/figure><\/div>\n\n\n<p>Alternatively, download the latest <strong>UiCore Elements plugin<\/strong> from <a href=\"https:\/\/wordpress.org\/plugins\/uicore-elements\/\">WordPress.org<\/a> and upload it via the WordPress plugin upload option.<\/p>\n\n\n\n<ol start=\"2\">\n<li><strong>Add Capability Check: <\/strong>Add administrator capability check for <strong>REST API route\u2019s permission_callback.<\/strong><\/li>\n\n\n\n<li><strong>Disable Direct Access to Upload Directory: <\/strong>Prevent execution of scripts in upload directories by disabling direct access.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p><strong>UiCore Elements<\/strong> <strong>(\u22641.3.0)<\/strong> lacked authorization, filename checks, and safe template handling. This exposed sensitive files like <strong>wp-config.php<\/strong>, risking full site compromise. <\/p>\n\n\n\n<p>This blog explains the vulnerability, its causes, and preventive measures to secure your WordPress site.<\/p>\n\n\n\n<p>Updating to <strong>version 1.3.1<\/strong> and implementing proper access controls, filename sanitization are essential to secure affected sites.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Need Help?<\/strong><\/h2>\n\n\n\n<p>Was this guide helpful? Please share your feedback in the comments below.&nbsp;<\/p>\n\n\n\n<p>In case you have any issues\/queries regarding the module please raise a ticket at <a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\"><strong>https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/&nbsp;<\/strong><\/a><\/p>\n\n\n\n<p>For any further information or query contact us at <a href=\"mailto:support@webkul.com\">support@webkul.com<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Thanks for reading!!<\/strong><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>A critical security flaw was recently discovered in the UiCore Elements WordPress plugin (version &lt;= 1.3.0), which is used on over 40,000 websites. The vulnerability allows attackers to perform an Arbitrary File Read (LFI) on the server where WordPress is hosted.<\/p>\n","protected":false},"author":54,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[340,88],"tags":[178,921,231,919,920,556,917],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Serious File Read Exploit in UiCore Elements Plugin - Cloudkul<\/title>\n<meta name=\"description\" content=\"Serious Arbitrary File Read vulnerability in the UiCore Elements WordPress plugin allows attackers to access sensitive files on the server.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudkul.com\/blog\/serious-file-read-exploit-in-uicore-elements\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Serious File Read Exploit in UiCore Elements Plugin - Cloudkul\" \/>\n<meta property=\"og:description\" content=\"Serious Arbitrary File Read vulnerability in the UiCore Elements WordPress plugin allows attackers to access sensitive files on the server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudkul.com\/blog\/serious-file-read-exploit-in-uicore-elements\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudkul\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-29T13:36:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-29T13:36:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2025\/10\/image-3.png\" \/>\n<meta name=\"author\" content=\"Ayush Verma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudkul.com\/blog\/serious-file-read-exploit-in-uicore-elements\/\",\"url\":\"https:\/\/cloudkul.com\/blog\/serious-file-read-exploit-in-uicore-elements\/\",\"name\":\"Serious File Read Exploit in UiCore Elements Plugin - Cloudkul\",\"isPartOf\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\"},\"datePublished\":\"2025-10-29T13:36:29+00:00\",\"dateModified\":\"2025-10-29T13:36:33+00:00\",\"author\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/8f8383043e2cfc8a75f0755f2ef5ad88\"},\"description\":\"Serious Arbitrary File Read vulnerability in the UiCore Elements WordPress plugin allows attackers to access sensitive files on the server.\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/serious-file-read-exploit-in-uicore-elements\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudkul.com\/blog\/serious-file-read-exploit-in-uicore-elements\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudkul.com\/blog\/serious-file-read-exploit-in-uicore-elements\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Serious File Read Exploit in UiCore Elements Plugin\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\",\"url\":\"https:\/\/cloudkul.com\/blog\/\",\"name\":\"Cloudkul\",\"description\":\"Host your eCommerce Store on AWS with Optimized Performance\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudkul.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/8f8383043e2cfc8a75f0755f2ef5ad88\",\"name\":\"Ayush Verma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cc65a8800a1ec6b0a794cd82b2af2a54?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cc65a8800a1ec6b0a794cd82b2af2a54?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"caption\":\"Ayush Verma\"},\"description\":\"Associate Security Analyst\",\"url\":\"https:\/\/cloudkul.com\/blog\/author\/ayush-verma752\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Serious File Read Exploit in UiCore Elements Plugin - Cloudkul","description":"Serious Arbitrary File Read vulnerability in the UiCore Elements WordPress plugin allows attackers to access sensitive files on the server.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cloudkul.com\/blog\/serious-file-read-exploit-in-uicore-elements\/","og_locale":"en_US","og_type":"article","og_title":"Serious File Read Exploit in UiCore Elements Plugin - Cloudkul","og_description":"Serious Arbitrary File Read vulnerability in the UiCore Elements WordPress plugin allows attackers to access sensitive files on the server.","og_url":"https:\/\/cloudkul.com\/blog\/serious-file-read-exploit-in-uicore-elements\/","og_site_name":"Cloudkul","article_published_time":"2025-10-29T13:36:29+00:00","article_modified_time":"2025-10-29T13:36:33+00:00","og_image":[{"url":"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2025\/10\/image-3.png"}],"author":"Ayush Verma","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cloudkul.com\/blog\/serious-file-read-exploit-in-uicore-elements\/","url":"https:\/\/cloudkul.com\/blog\/serious-file-read-exploit-in-uicore-elements\/","name":"Serious File Read Exploit in UiCore Elements Plugin - Cloudkul","isPartOf":{"@id":"https:\/\/cloudkul.com\/blog\/#website"},"datePublished":"2025-10-29T13:36:29+00:00","dateModified":"2025-10-29T13:36:33+00:00","author":{"@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/8f8383043e2cfc8a75f0755f2ef5ad88"},"description":"Serious Arbitrary File Read vulnerability in the UiCore Elements WordPress plugin allows attackers to access sensitive files on the server.","breadcrumb":{"@id":"https:\/\/cloudkul.com\/blog\/serious-file-read-exploit-in-uicore-elements\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudkul.com\/blog\/serious-file-read-exploit-in-uicore-elements\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cloudkul.com\/blog\/serious-file-read-exploit-in-uicore-elements\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Serious File Read Exploit in UiCore Elements Plugin"}]},{"@type":"WebSite","@id":"https:\/\/cloudkul.com\/blog\/#website","url":"https:\/\/cloudkul.com\/blog\/","name":"Cloudkul","description":"Host your eCommerce Store on AWS with Optimized Performance","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudkul.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/8f8383043e2cfc8a75f0755f2ef5ad88","name":"Ayush Verma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cc65a8800a1ec6b0a794cd82b2af2a54?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cc65a8800a1ec6b0a794cd82b2af2a54?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","caption":"Ayush Verma"},"description":"Associate Security Analyst","url":"https:\/\/cloudkul.com\/blog\/author\/ayush-verma752\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/20750"}],"collection":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/users\/54"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/comments?post=20750"}],"version-history":[{"count":16,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/20750\/revisions"}],"predecessor-version":[{"id":20773,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/20750\/revisions\/20773"}],"wp:attachment":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/media?parent=20750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/categories?post=20750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/tags?post=20750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}