Search This Blog

Powered by Blogger.

Blog Archive

Labels

Footer About

Footer About

Labels

Showing posts with label Wordpress Security. Show all posts

Security Analysts Warn of Shadow Directory Techniques Targeting WordPress


 

Several theme-level vulnerabilities coupled with evolving abuse tactics are demonstrating once again how vulnerable WordPress becomes when multiple vulnerabilities are aligned. An unauthenticated file access and deletion vulnerability has been disclosed in the WPLMS theme-tracked as CVE-2024-10470 and assigned a CVSS score of 9.8-which has exposed thousands of learning management deployments. 

A significant risk exists as a result of the issue in more than 28,000 active installations, which enables attackers to read or remove sensitive files such as wp-config.php, thereby lowering the barrier to full site compromise, data exposure, and operational disruption. 

Not only does the vulnerability itself pose a serious threat, but its intersection with a broader wave of hostile activity that has already targeted WordPress ecosystems at a significant scale makes this threat particularly acute. This is in keeping with recent research by Sucuri that shows threat actors are utilizing malicious JavaScript injections to weaponize distributed brute-force campaigns against compromised sites. 

Instead of attacking targets directly, injected code quietly conscripts unsuspecting web browsers, creating a distributed attack platform based on normal web traffic. Earlier campaigns were focused on crypto drainers and Web3 phishing redirects, but the latest iteration, which has been observed on over 700 websites, uses leaked and commonly used credentials to systematically brute-force additional WordPress installations, representing a dramatic shift from these earlier campaigns. 

This development demonstrates how critical theme vulnerabilities and indirect attack mechanisms are being combined to amplify impact, accelerate lateral spread, and undermine trust in compromised WordPress environments by chaining together critical theme vulnerabilities and indirect attack mechanisms.

It was discovered that the attackers had manipulated the way pages were rendered to specific visitors, rather than altering visible site content. During search engine results, valid titles and descriptions were replaced with casino- and gambling-related text, suggesting that this was done deliberately to poison the indexing of search engines. 

Notably, the spam did not appear on highly trafficked areas, such as the homepage or blog posts. In place of static, low-maintenance pages, it appeared on static, low-maintenance pages like About Us, Contact Us, Privacy Policy, and Terms & Conditions—sections that are generally static and rarely examined. Consequently, the placement alone indicates a deliberate attempt to avoid detection while maximising SEO abuse. 

Verification of the affected pages through the WordPress administrative interface revealed no signs of compromise. They retained their expected permalinks and the content displayed within the editor was entirely valid. Based on a direct review of the underlying database, including the records in the wp_posts table, it was determined that no unauthorized modifications had occurred to the content storage system. 

In the present state, there is little to explain why search engines index spam, while human visitors only see benign content, since neither the page source nor the database indicate any anomalies. A turning point occurred when investigators altered the browser’s User-Agent string to emulate a crawler’s behavior.

Consequently, the same URLs exhibited entirely different content when viewed under these conditions. Instead of displaying standard corporate or legal information, pages previously showing standard corporate or legal information appeared full-screen casino spam, confirming that cloaking has been implemented. 

By using this conditional delivery mechanism, attackers were able to target search engine bots selectively and conceal the malicious payload from site administrators and regular users. A deeper technical review indicated that the compromise extends beyond simple content injection and that it involves a more advanced method for manipulating the permalinks and page rendering logic within WordPress itself without leaving conventional forensic traces. 

As a result of a deeper technical analysis, the root cause was determined to be an envato-setup-export.php component of the WPLMS theme which lacked critical security controls. In this code, the zip_file parameter is not validated or sanitized, which enables an attacker to reference any file located on the server arbitrarily.

Once a target file is selected, the application logic proceeds to read its contents using the readfile() function before deleting it using the unlink() function. By executing this unsafe sequence, unauthenticated attackers are effectively capable of removing critical configuration files, including WordPress' configuration file, user-generated content, and other important assets from the site, thereby significantly weakening the site's security posture. This vulnerability has a broader impact than deleting isolated files. 

Upon removing the WordPress config.php file, WordPress will be placed in an installation state, as it will be disconnected from the existing database. By exploiting the setup process, an attacker can link the site with a database under his/her control, allowing full administrative control of the website. 

A file-handling vulnerability that initially appears to be a vulnerability is transformed into a complete site compromise that can result in data exfiltration, persistent backdoors, and abuse of trust among users. As the theme is widely deployed across multiple sectors, the vulnerability is a high-value target for both opportunistic and coordinated attacks, thereby amplifying the threat. 

Initially disclosed by security researcher Foxyyyy through Wordfence's Bug Bounty Program, Foxyyyy received a $900 bounty. Following this publication, Wordfence has issued a recommendation for all WPLMS users to upgrade to version 4.963 or later, which contains a fix for the vulnerability known as CVE-2024-10470. Because the flaw is global in scope and severe, administrators are encouraged to prioritize patching. 

As part of enhancing baseline defenses, security teams should harden servers and applications, maintain offline backups, enforce strong authentication practices, such as unique passwords and multi-factor authentication, and make sure that operating systems, plugins, and security signatures are fully updated. 

When similar vulnerabilities arise in the future, these measures are critical to reducing exploitation risk and limiting the blast radius. The malicious functionality was found to be completely hidden within an index.php file placed in fabricated directories which reflected legitimate WordPress permalinks as a result of the subsequent investigation. 

A traffic gatekeeper file serves as a dynamic gatekeeper, determining whether to serve authentic-looking content or spam payloads based on the nature of incoming requests. As a result of conditional logic, routine visits by site owners and regular users did not raise any immediate suspicion, while search engine crawlers were selectively given content that was designed to be indexed. 

A bot-detection routine, which was embedded at the heart of this mechanism, was designed to efficiently identify search engine traffic with an extremely high level of precision. The attackers specifically targeted multiple Google-related User-Agent strings in order to effectively differentiate search engine crawlers from human traffic. 

By identifying these identifiers in a request, the malware bypasses the legitimate page altogether and loads a secondary file directly into the browser, readme.txt, rendering its contents directly in the browser. 

While this file appeared harmless, it contained a complete HTML document containing spam content specifically designed to influence the rankings of search engines. In order to conceal the compromise, the malicious script instead included indexx.php, an HTML static capture of the original page for non-bot traffic. This approach portrayed the site as entirely normal to administrators and users, effectively cloaking the compromise. 

In addition, the readme.txt payload further emphasized the sophisticated nature of the campaign by providing deceptive information. A file containing more than 600 lines of HTML, JavaScript, and stolen styling elements impersonated a high authority online retail site spanning more than 600 lines. 

In addition to reusing CSS, metadata, and structural elements related to Etsy, the attackers attempted to add credibility to the webpage by using underlying content that promoted Indonesian gambling schemes referred to as "Slot Gacor." The attackers also inserted extensive Schema Markup, using JSON-LD, to enhance visibility in search results. 

In addition to creating fabricated product listings, aggregate ratings, and pricing information, the attackers effectively manipulated how search engine snippets portrayed the pages. Consequently, what was in fact a cloaked spam page could appear in search results presenting itself as an attractive, highly rated product, leading to an increase in click-through rates and an extension of infection lifespan. 

Instead of treating symptoms individually, remediation efforts focused on fully removing the malicious infrastructure. As a result of identifying and deleting all unauthorized directories that replicated WordPress permalinks, as well as the associated malicious files, the site was then tested using multiple User-Agent configurations, ensuring that content delivery was consistent and no longer dependent on the User-Agent configuration. 

A complete review of file permissions, resetting of all administrative, hosting, FTP, and database credentials was performed in parallel with the site owner's advice to request a fresh index from search engines upon completion of the cleanup. 

In addition, security specialists recommended that an extensive post-incident hardening process be implemented, including the removal of unknown user accounts, checking core WordPress files such as index.php and .htaccess, and regularly monitoring server logs for suspicious outbound connections. 

As part of the recommendations, additional safeguards were emphasized, including maintaining offline backups, updating all components, scanning administrator devices for malware, and deploying a Web Application Firewall to prevent cloaking-based campaigns from taking hold in the future, and reducing the likelihood of reinfection. 

According to the findings of subsequent investigation, the malicious functionality was completely contained within an index.php file located in fabricated directories that mimicked legitimate WordPress permalinks. By dynamically analyzing the nature of the incoming request, this file determined whether to serve authentic-looking page content or spam payload. 

Using conditional logic, routine visits by site owners and regular users did not raise suspicion, while search engine crawlers were given manipulated content intended for indexing selectively. As a key component of this methodology, a bot-detection routine was developed which was capable of identifying search engine traffic with high precision. 

As a result of the attackers' explicit targeting of multiple Google-related User-Agent strings, they have been able to identify crawlers from human users reliably. In response to a request matching these identifiers, the malware bypassed the legitimate site entirely and loaded a secondary file, readme.txt, which was displayed directly in the browser. 

However, the file contained an entire HTML document with spam content designed to influence search engine rankings despite its seemingly innocent name. In order to conceal the compromise, the malicious script instead included indexx.php, an HTML static capture of the original page for non-bot traffic. This approach portrayed the site as entirely normal to administrators and users, effectively cloaking the compromise.

In addition, the readme.txt payload further emphasized the sophisticated nature of the campaign by providing deceptive information. A file containing more than 600 lines of HTML, JavaScript, and stolen styling elements impersonated a high authority online retail site spanning more than 600 lines. 

In addition to reusing CSS, metadata, and structural elements related to Etsy, the attackers attempted to add credibility to the webpage by using underlying content that promoted Indonesian gambling schemes referred to as "Slot Gacor." The attackers also inserted extensive Schema Markup, using JSON-LD, to enhance visibility in search results. 

In addition to creating fabricated product listings, aggregate ratings, and pricing information, the attackers effectively manipulated how search engine snippets portrayed the pages. Due to this, what was in fact a cloaked spam page appeared in search results as a product that was perceived as legitimate and highly rated, resulting in increased click-throughs and prolonged infection.

In contrast to treating symptoms in isolation, remediation efforts focused on eliminating the malicious infrastructure completely. A comprehensive investigation of all unauthorized directories replicating WordPress permalinks was conducted, together with the associated malicious files, and all unauthorized directories were deleted. 

Following the verification of consistent content delivery, multiple User-Agent configurations were used to verify that any conditionality was eliminated. In parallel, file permissions were reviewed, all administrative, hosting, FTP, and database credentials were reset, and the website owner was instructed to request that search engines refresh their index once the cleanup had been completed.

Additionally, security specialists recommend that all WordPress user accounts be removed, core WordPress files such as index.php and .htaccess be verified, and server logs for suspicious outbound connections be monitored regularly. 

It is important to maintain offline backups, keep all components updated, scan administrator devices for malware, and deploy a Web Application Firewall as additional safeguards so that reinfection will be reduced and similar cloaking-based campaigns will not occur again. 

Overall, the investigation indicates how a number of weaknesses were purposefully chained together to create a highly resilient and covert compromise. This attack did not utilize overt defacement or obvious content injection, but rather exploited a critical WordPress theme vulnerability combined with cloaking techniques to manipulate WordPress' rendering of content in accordance with the visitor's identity. 

Using CVE-2024-10470 in the WPLMS theme, they were able to remove or access sensitive files, weakening the security of the site and creating conditions for deeper manipulation of data without altering it. Several recent Sucuri findings confirm the shift towards indirect abuse mechanisms in WordPress-focused attacks, which correspond with the broader campaign. 

A malicious JavaScript injection was used by threat actors to manipulate unsuspecting visitors' browsers, effectively converting legitimate traffic into a distributed attack network via JavaScript injections. The most recent phase of this activity was observed across over 700 compromised sites.

It utilised leaked and commonly used credentials to brute-force additional WordPress installations, despite earlier iterations focusing on crypto drainers and Web3 phishing redirections. This evolution shows a deliberate movement toward techniques that are scalable and low-noise, thus maximizing reach and minimizing immediate detection.

An extremely sophisticated cloaking component was implemented in the attack Malicious logic was incorporated into index.php files located in fabricated directories that were intended to mirror legitimate WordPress permalinks, providing access to legitimate permalinks as well as identifying search engine crawlers using multiple Google-specific User-Agent strings to serve as traffic gatekeepers. 

Upon identifying crawler traffic, an additional payload was served from a file deceptively titled readme.txt which contained a fully formatted HTML document that was optimized for search engine indexing. However, human visitors and site administrators received indexx.php, a static HTML snapshot of the legitimate page, thereby ensuring that the site appeared normal during routine inspections. 

Over 600 lines of code were incorporated into the spam payload in an effort to fool automated systems. Combining HTML, JavaScript, and stolen design elements created the illusion of an e-commerce platform with high authority. 

A number of technical components associated with Etsy, including CSS, metadata, and structural components, were reused by the attackers, together with extensive JSON-LD schema markup that contained fabricated product data, ratings, and pricing. As a result, the attackers manipulated how search engines interpreted and displayed the pages. 

The result was the presentation of cloaked gambling content-promoting Indonesian "Slot Gacor" schemes-as seemingly legitimate, highly rated listings in search results, increasing click-through rates and extending the lifespan of the infection. 

Rather than addressing individual symptoms, remediation efforts focused on dismantling the attack infrastructure as a whole. A thorough examination was conducted to identify and remove all unauthorized directories that replicated WordPress permalinks along with the malicious files associated with them.

Tests were conducted using a variety of user agents to confirm the removal of conditional content delivery. Additionally, site owners were advised to request re-indexing by search engines following cleanup by reviewing file permissions, resetting all administrative, hosting, FTP, and database credentials, as well as re-adjusting all administrative credentials.

The security specialists reiterated that post-incident hardening is extremely important in order to prevent recurrences. It was recommended that unknown user accounts be audited and removed, core WordPress files such as index.php and .htaccess be verified for integrity, server logs for suspicious outbound connections be monitored, offline backups be maintained, all components are kept up to date, malware is scanned on administrator systems, and a web application firewall be implemented. 

Collectively, these steps play a critical role in reducing the risk of reinfection and defending against future cloaking-related campaigns that increasingly blur the boundaries between content abuse, SEO manipulation, and the compromise of the entire site.

WordPress Vulnerabilities, Exploiting LiteSpeed Cache and Email Subscribers Plugins

 

In recent cybersecurity developments, hackers have been leveraging a critical vulnerability within the LiteSpeed Cache plugin for WordPress to exploit websites running outdated versions. LiteSpeed Cache, a popular caching plugin utilized by over five million WordPress sites, is designed to enhance page load times, improve user experience, and boost search engine rankings. 

However, security experts at Automattic's security team, WPScan, have observed a significant increase in malicious activities targeting WordPress sites with versions of the LiteSpeed Cache plugin older than 5.7.0.1. The vulnerability in question, tracked as CVE-2023-40000, is a high-severity unauthenticated cross-site scripting flaw. 

Attackers are taking advantage of this vulnerability to inject malicious JavaScript code into critical WordPress files or the database of vulnerable websites. By doing so, they are able to create administrator-level user accounts with specific names like 'wpsupp-user' or 'wp-configuser.' Additionally, the presence of certain strings, such as "eval(atob(Strings.fromCharCode," within the database, serves as an indicator of an ongoing compromise. 

Despite efforts by many LiteSpeed Cache users to update to newer, non-vulnerable versions, an alarming number of sites—up to 1,835,000—still operate on outdated releases, leaving them susceptible to exploitation. In a separate incident, hackers have turned their attention to another WordPress plugin called "Email Subscribers," exploiting a critical SQL injection vulnerability, CVE-2024-2876. 

This vulnerability, affecting plugin versions 5.7.14 and older, allows attackers to execute unauthorized queries on databases, thereby creating new administrator accounts on vulnerable WordPress sites. Although "Email Subscribers" boasts a significantly lower number of active installations compared to LiteSpeed Cache, with approximately 90,000, the observed attacks highlight the opportunistic nature of cybercriminals. 

To address these threats effectively, WordPress site administrators are urged to promptly update plugins to the latest versions, remove unnecessary components, and remain vigilant for signs of suspicious activity, such as the sudden creation of new admin accounts. In the event of a confirmed breach, comprehensive cleanup measures are essential, including the deletion of rogue accounts, password resets for all existing accounts, and the restoration of clean backups for both the database and site files. By staying proactive and implementing robust security practices, website owners can minimize the risk of falling victim to such malicious activities and safeguard their online assets effectively.

WordPress Security: 1 Million WordPress Sites Hacked via Zero-Day Plug-in Bugs


A campaign that utilizes several WordPress plug-ins and theme vulnerabilities to inject malicious code into websites, including a sizable number of zero-days, has infected at least 1 million WordPress-sponsored websites. 

According to a study conducted by Sucuri, the campaign, which it named "Balada Injector," is prolific and Methuselah-like in its endurance, infecting victim sites with malware at least since 2017. After being injected into the page, the malicious code leads users to a variety of scam websites, such as those offering fake tech support, bogus lottery wins, and push notifications requesting Captcha solutions. 

However, behind the scenes, injected scripts look for numerous files, including access logs, error logs, debug information files, database management tools, administrator credentials, and more, that might include any sensitive or potentially helpful information. In addition, backdoors are loaded into the websites for enduring access and, occasionally, site takeover. 

While the 1 million statistic represents the total number of sites that have been infected over the past five years, researchers only recently linked all the activities into a single operation. The campaign is still going strong and does not appear to be slowing down. 

A Focus on WordPress Plug-in & Theme Vulnerabilities 

Sucuri researchers were able to link all of the observed activity to the Balada Injector campaign since it has a few easily distinguishable attributes. These include using a rotating roster of domain names where malicious scripts are placed on haphazard subdomains, uploading and leaving numerous backdoors all across the hacked environment, and spammy redirects. 

Moreover, the developers of Balada Injector also exploit security flaws in WordPress plug-ins and themes, which is likely most noteworthy. These modular WordPress add-ons enable site administrators to integrate a variety of features, such as polling support, message board assistance, or click-to-call integration for e-commerce businesses. 

"All sorts of vulnerabilities in WordPress themes and plugins can allow an attacker to inject code or gain unauthorized access to the website — which can eventually be escalated to the level where code injections are possible[…]This entire time, Balada Injector has been quickly adding newly disclosed vulnerabilities (and sometimes disclosed zero-days), occasionally starting massive waves of infections within a few hours after vulnerability disclosures," Sucuri analysis explains. 

Sucuri has been tracking new waves of activity happening every couple of weeks, with lulls in between that are "probably utilised for gathering and testing newly reported and zero-day vulnerabilities." 

Moreover, older vulnerabilities are also included in the mix, with some still in use by the campaign for months or years after being patched. 

Targeting the WordPress Ecosystem 

Given how the WordPress ecosystem is extremely buggy, it has become a popular target for cybercriminals among any other stripes. 

"Depending on how you measure it, in 2023, WordPress still powers 60% of the websites available on the Internet today[…]The sheer volume of code that goes into this, the degree of customization often present on WordPress sites, and in general the WordPress plug-in ecosystem's complexity, popularity, and the lack of consistent security measures and practices, contribute to its attractiveness to cybercriminals as a rich hunting ground for exploitable bugs," says Casey Ellis, founder, and CTO at the Bugcrowd bug bounty platform. 

Protecting Against WordPress Plug-in Insecurity 

To safeguard oneself against Balada Injector and other WordPress threats, companies must first ensure that all of their website software is updated, delete unused plug-ins and themes, and implement a Web application firewall to protect against Balada Injector and other WordPress threats. 

According to Mike Parkin, senior technical engineer at Vulcan Cyber, the ease with which plug-ins can be added to WordPress from authorized download stores (much like the ecosystem for mobile apps) adds to the security issue. As a result, education for the Web team regarding the risks of installing unapproved modules is also necessary. 

"The myriad available plug-ins, multiple places to get them, and the ease of deployment — you have a recipe for easy malicious plug-in distribution," he says. 

Even large organizations are not resistant to WordPress Security problems. "There are cases, even in large enterprises, where a website is developed and maintained by an individual or small team[…]Often, those folks aren’t especially security conscious and are more interested in keeping their site up and fresh than they are in doing it securely. Patches get missed. Security alerts get missed. New and interesting plug-ins get installed without making sure they are safe or, sometimes, even work," he adds.  

Popular Real Estate Theme in WordPress Leaves Websites Vulnerable to Cyber Attacks


The WP Residence Theme: An Overview of a Popular Real Estate Theme

Real estate sites are one of the most famous and thriving sites on the web, and WordPress is one of the most generally used content management systems (CMS) for making and handling these sites. But recent reports have disclosed that there is a flaw in one of the most popular real estate themes for WordPress that has been abused by threat actors to get access to personal info and hack websites.

The flaw exists in the WP Residence theme, which thousands of real estate websites use across the world. The theme lets site owners to make and manage property listings, show property details, and handle user inquiries. The issue coms from a vulnerability in the theme’s code, which lets threat actors to execute arbitrary code and get administrative privileges on the site.

When the threat actors gain access to the website’s backend, they can steal sensitive information, like user credentials, personal data, and financial information. They can also deploy malicious code, which can cause more dangerous attacks, like spreading malware or ransomware, disrupting the site, or launching a distributed denial-of-service (DDoS) attack.

The Discovery of the Vulnerability: How Wordfence Identified the Issue

The flaw was first found by Wordfence, a leading cybersecurity firm that specialises in WordPress security. The firm discovered that the flaw was being actively exploited in the open, which hints that threat actors were already exploiting it to hack real estate websites. The vulnerability impacted all variants of the WP Residence theme up to version 1.60.3, which was launched in January 2021.

Wordfence immediately alerted the theme’s developers, who released a patch to fix the issue. The patch was included in version 1.60.4, which was released in February 2021. Website owners who use the WP Residence theme are urged to update to the latest version as soon as possible to protect their website from potential attacks.

The Importance of Maintaining Strong Website Security Practices

This incident highlights the importance of keeping your website up-to-date with the latest software patches and security updates. Even popular and well-maintained themes and plugins can contain vulnerabilities that can be exploited by hackers. Therefore, it’s essential to have a robust security strategy in place, which includes regular backups, malware scans, and security audits.

In conclusion, the vulnerability in the WP Residence theme is a reminder that no website is immune to cyber-attacks. Website owners need to be vigilant and proactive in securing their websites, especially if they handle sensitive information or financial transactions. By following best practices for website security and staying informed about the latest threats and vulnerabilities, website owners can protect their website and their users from harm.



This WordPress Plugin Flaw Impacts 1M Sites & Allows Malicious Redirects

 

A high-severity issue in the OptinMonster plugin permits unauthorised API access and sensitive information leak on around a million WordPress sites. 

The flaw, identified as CVE-2021-39341, was found by researcher Chloe Chamberland on September 28, 2021, and a fix was made available on October 7, 2021. All OptinMonster plugin users are recommended to upgrade to version 2.6.5 or later, as all previous versions are impacted. 

OptinMonster is a popular WordPress plugin for creating stunning opt-in forms that assist site owners in converting visitors to subscribers/customers. It is primarily a lead generation and monetization tool, and it is used on roughly a million websites because of its ease of use and variety of features.

According to Chamberland's vulnerability disclosure report, OptinMonster's power is based on API endpoints that provide easy integration and a streamlined design process. However, the execution of these endpoints isn't always safe, with the '/wp-json/omapp/v1/support' endpoint being the most crucial example. 

This endpoint can provide information such as the site's entire route on the server, API keys used for site requests, and more. An attacker with access to the API key could make modifications to the OptinMonster accounts or even inject malicious JavaScript snippets into the site. Without anyone's knowledge, the site would run this code every time a visitor activated an OptinMonster element.

To make circumstances terrible, the intruder would not even need to authenticate on the targeted site in order to use the API endpoint, since an HTTP request would circumvent security checks under certain, simple conditions. While the '/wp-json/omapp/v1/support' endpoint is the worst-case scenario, it is not the only insecure REST-API endpoint that may be exploited. 

When the researcher's findings reached the OptinMonster team, the popular WordPress plugin's developers understood that the entire API needed to be revisited. As a result, all OptinMonster upgrades that appear on the WordPress dashboard in the next weeks must be installed, as they will most likely resolve further API issues. 

Meanwhile, any API keys that may have been stolen were instantly invalidated, forcing site owners to produce new keys. This case demonstrates how widely deployed and popular WordPress plugins can harbour several undetected flaws over extended periods.

WordPress Websites Infected with Malware Via Fake jQuery Files


Cybersecurity experts discovered fake variants of the jQuery Migrate plugin inserted in various sites that had unclear codes to launch malware. The files are tagged as jquery-migrate.min.js and jquery-migrate.js, currently located where Java files are generally found on WordPress websites but in reality are fake. Presently, around 7 Million websites use the jQuery Migrate plugin, the popularity of the plugin may have led hackers to use it as a decoy to plant their malware under the plugin name. 

Cybersecurity experts Adrian Stoian and Denis Sinegubko earlier this week discovered fake jQuery files pretending to be jQuery migrate plugins on several websites. To avoid getting caught, the infected files interchange with legitimate files having ./wp-includes/js/jquery/ directory where all the WordPress files are present. 

These counterfeit files have further muddled the codes using an anonymous analytics.js file containing malicious codes. As of now, the threat level of this attack is yet to be determined, but a search query shared by Sinegubko revealed that the malicious code infected around forty web pages.  

The filename 'analytics' however, has nothing to do with the metrics of websites. Bleeping computer enquired some infected file codes. "The code has references to "/wp-admin/user-new.php" which is the WordPress administration page for creating new users. Moreover, the code accesses the _wpnonce_create-user variable which WordPress uses to enforce Cross-Site Request Forgery (CSRF) protections," reports Bleeping Computer. 

In general, if the hackers get the CSRF tokens, it allows them to imitate fake requests from the user end. Attaching these malicious scripts on WordPress websites allows hackers to deploy various cyberattacks using that may vary from credit card skimming for Megacart scams or redirecting users to scammed websites. Here, the victims may be led to fake survey forums, tech assistance frauds, requests for subscribing to spam notifications, or installing malicious browser extensions.  

Helpnet Security reports, "everyone with half a mind for security will tell you not to click on links in emails, but few people can explain exactly why you shouldn’t do that. Clicking on that link means that an attacker can fake any user-supplied input on a site and make it indistinguishable from a user doing it themselves."

Update your Wordpress, Prevent Your website from Being Hacked

WordPress has come up with its 4.2.2 version in order to increase its users security. It has also urged people to update their sites immediately.

Samuel Sidler, researcher at WordPress.org, wrote that the new version is aimed to address two security issues.

The first one is the Genericons icon font package, used in themes and plugins, which contained an HTML file vulnerable to a cross-site scripting attack. 

On May 7 all affected themes and plugins including twenty fifteen default theme have been updated by the WordPress security team after a DOM-based Cross-Site Scripting (XSS) vulnerability was discovered.

Security researchers from Sucuri warned that the vulnerability is being exploited in the wild days before disclosure.

Robert Abela of Netsparker reported that in a bid to protect other Genericons usage, WordPress 4.2.2 scans the wp-content directory for this HTML file and removes it.

Secondly, WordPress versions 4.2 and previous versions are affected by a critical cross-site scripting vulnerability, which could enable anonymous users to compromise a site. So, WordPress 4.2.2 includes a comprehensive fix for this issue according to a separate report by Rice Adu and Tong Shi.

WordPress 4.2.2 also contains fixes for 13 bugs from 4.2.

People just have to download WordPress 4.2.2 or venture over to Dashboard. Then click “Update Now” button. 

Sites that support automatic background updates have begun to update to WordPress 4.2.2.

Multiple vulnerabilities in TheCartPress WordPress plugin

Multiple vulnerabilities has been discovered in TheCartPress WordPress plugin by the High-Tech Bridge Security Research Lab.

The vulnerabilities can be exploited to execute arbitrary PHP code, disclose sensitive data, improper access control, and to perform Cross-Site Scripting attacks against users.

To exploit the local PHP File Inclusion vulnerability, an attacker needs to have administrator privileges on WordPress installation. PHP does not properly verify the URL before being used in  ‘include()’ function , and can be abused to include arbitrary local files via directory traversal sequences.

HTTP POST parameters are supplied by many users during the checkout process. These parameters are not being sanitized before being stored in the local database.  Which can be easily exploited by a non-authenticated attacker, they  may inject malicious HTML and JS code that will be stored in the application database, and made available to any non-authenticated user on the following URL:
http://wordpress/wp-admin/admin-ajax.php?order_id=[order_id]&action=tcp_print_or der

Due to broken authentication mechanism any non-authenticated user may browse orders of other users. They easily predict the order ID, enables them to steal all currently-existing orders.

The vulnerability can be reproduced by opening the  following URL:
http://wordpress/shopping-cart/checkout/?tcp_checkout=ok&order_id=[order_id]

And full details of the orders can be viewed by opening the following URL
http://wordpress/wp-admin/admin-ajax.php?order_id=[order_id]&action=tcp_print_or der

Inputs  can be passed via the "search_by", "address_id", "address_name", "firstname", "lastname", "street", "city", "postcode", "email", "post_id" and "rel_type", and "post_type"  GET parameter. These are not properly verified before being returned to the user. An attacker can logged-in as  administrator to open a link, and execute arbitrary HTML and script code in browser in context of the vulnerable website.