{"id":163777,"date":"2024-05-28T08:43:04","date_gmt":"2024-05-28T08:43:04","guid":{"rendered":"https:\/\/securityaffairs.com\/?p=163777"},"modified":"2024-05-28T08:43:06","modified_gmt":"2024-05-28T08:43:06","slug":"wordpress-plugin-insert-e-skimmer","status":"publish","type":"post","link":"https:\/\/securityaffairs.com\/163777\/malware\/wordpress-plugin-insert-e-skimmer.html","title":{"rendered":"WordPress Plugin abused to install e-skimmers in e-commerce sites"},"content":{"rendered":"
<\/div>\n

Threat actors are exploiting a WordPress plugin to insert malicious PHP code in e-commerce sites and steal credit card data.<\/h2>\n\n\n\n

Sucuri researchers observed threat actors using a PHP snippet WordPress plugin to install malicious code in WooCommerce e-stores and harvest credit card details. <\/p>\n\n\n\n

In the campaign spotted by the experts, attackers use a very obscure WordPress plugin called Dessky Snippets<\/a>, which has only a few hundred active installations at the time of writing.<\/gwmw><\/p>\n\n\n\n

Dessky Snippets is a lightweight and simple plugin that gives users the ability to easily add custom PHP code from WordPress admin. <\/gwmw><\/p>\n\n\n\n

The campaign occurred on May 11th, and the researchers observed a surge in downloads of the Dessky Snippets plugin from that same day. At this time, the WordPress plugin has over 200 active installations.<\/p>\n\n\n\n

\"Dessky<\/a><\/figure>\n\n\n\n

Attackers exploited the Dessky Snippets plugin to insert a server-side PHP credit card e-skimmer<\/a>.<\/p>\n\n\n\n

“This malicious code was saved in the\u00a0dnsp_settings<\/strong>\u00a0option in the WordPress\u00a0wp_options<\/strong>\u00a0table and was designed to modify the checkout process in WooCommerce by manipulating the billing form and injecting its own code.” reads the analysis<\/a> published by Sucuri.<\/em><\/p>\n\n\n\n

<\/p>\n\n\n\n

The malware has two main components. The first part uses a fake function named “twentytwenty_get_post_logos()” to hook into WooCommerce’s billing form. The function adds additional fields to the billing form to request credit card details earlier than usual. The second part involves an obfuscated credit card skimmer that monitors POST data for specific parameters. When the malware detects these parameters, it sends all the collected billing and credit card information to a third-party URL “hxxps:\/\/2of[.]cc\/wp-content\/”.<\/gwmw><\/gwmw><\/gwmw><\/p>\n\n\n\n

The researchers noticed that the billing form associated with the overlay used by the attackers has the autocomplete feature disabled, The fields are set with\u00a0autocomplete=\u201doff\u201d.<\/strong><\/p>\n\n\n\n

Disabling the auto-fill feature on the fake checkout form is an evasion trick that reduces the chances of the browser warning users about entering sensitive information. The fields remain blank until manually filled out, making them look like regular, necessary inputs for the transaction and reducing user suspicion.<\/gwmw><\/gwmw><\/p>\n\n\n\n

“In essence, ecommerce sites are prime targets for hackers due to the valuable data they handle.” concludes the report. “Here\u2019s a simple guide to protect your online store:<\/em><\/p>\n\n\n\n

    \n
  1. Keep your software patched<\/strong>: Regularly update your CMS, plugins, themes, and any third-party components to patch vulnerabilities.<\/gwmw><\/li>\n\n\n\n
  2. Use strong passwords<\/strong>: Ensure all accounts, including admin, sFTP, and database credentials, have\u00a0strong and unique passwords<\/a>.<\/li>\n\n\n\n
  3. Select trusted scripts<\/strong>: Only integrate third-party JavaScript from reputable sources. Avoid unnecessary third-party scripts.<\/li>\n\n\n\n
  4. Monitor for threats<\/strong>: Regularly check your site for signs of malware, unauthorized changes, or any indicators of compromise.<\/li>\n\n\n\n
  5. Implement a firewall<\/strong>: Use a\u00a0web application firewall<\/a>\u00a0to block malicious bots, virtually patch known vulnerabilities, and filter harmful traffic.<\/li>\n\n\n\n
  6. Set up a CSP<\/strong>:\u00a0Establish a Content Security Policy (CSP)<\/a>\u00a0to protect against clickjacking, cross-site scripting (XSS), and other threats.”<\/gwmw><\/gwmw><\/gwmw><\/li>\n<\/ol>\n\n\n\n

    Follow me on Twitter: @securityaffairs<\/strong><\/a> and Facebook<\/strong><\/a> and Mastodon<\/a><\/p>\n\n\n\n

    Pierluigi Paganini<\/strong><\/a><\/p>\n\n\n\n

    (<\/strong>SecurityAffairs<\/strong><\/a>\u00a0\u2013<\/strong>\u00a0hacking,\u00a0WordPress)<\/strong><\/p>\n\n\n\n

    <\/gwmw><\/p>\n","protected":false},"excerpt":{"rendered":"

    Threat actors are exploiting a WordPress plugin to insert malicious PHP code in e-commerce sites and steal credit card data. Sucuri researchers observed threat actors using a PHP snippet WordPress plugin to install malicious code in WooCommerce e-stores and harvest credit card details. In the campaign spotted by the experts, attackers use a very obscure […]<\/p>\n","protected":false},"author":1,"featured_media":163786,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3323,3,5,7],"tags":[88,15118,10324,4112,9508,9506,10918,30,687,841,1533,3118],"class_list":["post-163777","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-breaking-news","category-cyber-crime","category-hacking","category-malware","tag-cybercrime","tag-dessky-snippets","tag-e-skimming","tag-hacking","tag-hacking-news","tag-information-security-news","tag-it-information-security","tag-malware-2","tag-pierluigi-paganini","tag-security-affairs","tag-security-news","tag-wordpress-plugin"],"yoast_head":"\n杭州江阴科强工业胶带有限公司