⚠️

سلب مسئولیت و اخلاق حرفه‌ای

این مطالب صرفاً برای اهداف آموزشی، پژوهشی و افزایش آگاهی امنیتی ارائه شده‌اند. هرگونه استفاده غیرمجاز، غیرقانونی یا سوءاستفاده از اطلاعات، ابزارها و روش‌های مطرح‌شده، کاملاً بر عهده مخاطب است. نویسنده و منتشرکننده هیچ مسئولیتی در قبال خسارات، آسیب‌ها یا پیامدهای ناشی از استفاده نادرست از این مطالب نخواهند داشت.

Hidden WordPress Plugin Creates a 2FA Bypass Backdoor and Targets Site Visitors | Alireza Bolbolabadi - Red Team Security
LOADING

Hidden WordPress Plugin Creates a 2FA Bypass Backdoor and Targets Site Visitors

A parallel route into WordPress

A fake WordPress plugin discovered during two incident-response investigations represents a post-compromise implant rather than a vulnerability in WordPress core or a legitimate plugin. The Wordfence Threat Intelligence Team found the malware in January and September 2026, according to analyst Marco Wotschka’s November 24 report.

The plugin gives a compromised site two distinct capabilities:

  1. It can create a valid WordPress login session for an existing account without passing through the standard password check or completing two-factor authentication.

  1. It can deliver attacker-controlled JavaScript to browsers visiting the site while signed out.

These capabilities make the compromise especially difficult to assess through normal administration. Password resets alone do not close the backdoor while the malicious code remains on the server, and an authenticated review of the public site may appear clean because the visitor-facing loader is designed to remain dormant for logged-in users.

How the authentication bypass works

The plugin does not alter WordPress’s built-in login process. Instead, a PHP helper contains a separate backdoor routine that establishes a valid session for an existing account. It therefore bypasses both the normal password validation and any 2FA challenge by avoiding that authentication path entirely.

This distinction matters for incident response. A password change may invalidate legitimate credentials while leaving the server-side session-creation mechanism operational. The backdoor remains effective as long as its malicious files are present, so remediation must include removing the implant and revoking existing sessions.

Two-factor authentication remains useful because it protects the standard login route. It cannot, however, stop a backdoor that creates sessions after a successful installation on the server.

How the plugin remains hidden

The malware removes its entry from the WordPress Plugins screen. It also copies a modification timestamp from an existing plugin, making its own files appear older than their actual creation date. These tactics reduce the likelihood that routine dashboard reviews or searches for recently modified files will identify the implant.

The plugin is also padded to resemble a legitimate package. Generated names, stylesheets, artwork, and configuration files make it look more substantial, while comments and unused functions account for roughly two-thirds of each file. The operational PHP and JavaScript are buried within files that are partly designed to dilute manual inspection.

These concealment techniques explain why comparing the Plugins screen with the contents of wp-content/plugins/ is more reliable than relying on either source in isolation.

The visitor-facing JavaScript loader

The plugin’s public-facing behavior is conditional. It remains dormant for authenticated users but activates for logged-out visitors, making the infection less conspicuous to administrators reviewing the site while signed in.

When active, the loader retrieves attacker-controlled JavaScript through the infected website. The browser therefore receives the script from the site it intended to visit rather than connecting directly to the attacker-controlled infrastructure during delivery. From a network perspective, the initial traffic can appear to belong to the legitimate site.

After a visitor passes through the delivery stages, the malware reportedly reports an event to the attacker. Researchers described this behavior as consistent with ad fraud or paid traffic referrals. The available reporting does not establish that visitor data was stolen or that the site’s database was copied.

The loader could support phishing forms, fake update prompts, malicious redirects, or keystroke logging, according to Wordfence. These are possible uses rather than confirmed outcomes. Wordfence also did not confirm that ClickFix was involved in this campaign, despite separate research involving WordPress sites that host ClickFix.

What remains unknown

Evidence points to activation through an administrator account, but the available material does not establish how the attacker first obtained that access. A separate case involving hijacked WordPress administrator sessions was cited as a reason to review active sessions, but it was not demonstrated as part of this intrusion chain.

Other unresolved questions include the number of affected installations, whether visitors’ data or database contents were exfiltrated, and what the delivered JavaScript actually did in each incident. No WordPress core version range, plugin slug, or file hash is included in the provided context.

The source also states that Wordfence released campaign-specific signatures to paid customers, but the date is truncated. Exact signature availability for other Wordfence customers therefore cannot be determined from the supplied information.

Detection and remediation priorities

The first priority is preserving access and error logs before removing files or changing credentials. Those records may help reconstruct the initial access path, attacker activity, and dwell time.

Detection should combine several checks:

  • Compare the plugins visible in the dashboard with the directories and files present under wp-content/plugins/.

  • Inspect the public site while signed out, preferably in a separate browser profile, so the visitor-facing loader is not suppressed by an authenticated session.

  • Review administrator accounts, active sessions, and authentication logs for unexplained activity.

  • Look for additional persistence mechanisms. The presence of one hidden plugin does not establish that it is the only implant, and separate reporting on a self-healing WordPress malware backdoor reinforces the need for broader checks.

After evidence is preserved, remove the malicious plugin and investigate how it was installed. Existing sessions should then be revoked and relevant credentials rotated. Revoking sessions before removing the implant risks allowing the backdoor to create another session.

2FA should remain enabled because it still protects the normal login route, but it should not be considered evidence that an already-compromised server is secure.

منابع

·
← اخبار