Threat Overview
A critical unauthenticated PHP Object Injection vulnerability in QA Assistants – Driven by data (qa-heatmap-analytics), a behavioral heatmap and analytics plugin for WordPress, enables remote attackers to write arbitrary PHP files to the server and achieve Remote Code Execution.
Tracked under CVE-2026-87112 (CVSS 9.8), the defect chains unrestricted PHP unserialize() execution with path traversal and a Property-Oriented Programming (POP) gadget inside the plugin’s bundled Guzzle library. Any site running versions up to and including 5.3.0 is exposed to automated server takeover.
| Threat Metric | Technical Details |
|---|---|
| Severity Rating | CRITICAL (CVSS 9.8 / 10.0) |
| Vulnerability Class | Deserialization of Untrusted Data & Path Traversal to RCE (CWE-502 / CWE-22) |
| Vulnerable Components | QA Assistants – Driven by data (qa-heatmap-analytics, versions up to and including 5.3.0) |
| Attack Vector | Unauthenticated HTTP request via dlevent_ver & raw_name parameters + wp-cron.php |
| Exploit Precondition | Active QA Assistants plugin installation (no authentication required) |
| Fixed Versions | Patched in WordPress Plugin Trac changeset 3728466 (versions above 5.3.0) |
Our Take in Plain English
“Every smart business owner wants to see how visitors interact with their pages. The hidden trap on WordPress is that installing a heatmap plugin forces your live web server to ingest, queue, and deserialize raw tracking data from every anonymous visitor—while bundling thousands of third-party PHP library files that automated AI scanners can chain together like Lego bricks. From first principles, visitor analytics should never execute inside your origin server’s PHP runtime. In a modern pre-rendered edge architecture, pages are served as immutable static HTML from the global edge and telemetry is processed statelessly with zero server-side object deserialization.”
The Breakdown: How the Exploit Works
To record visitor clickstreams and scroll heatmaps without requiring login, the QA Assistants plugin exposes unauthenticated AJAX endpoints (qahm-ajax.php) that write behavioral tracking files into a local queue. Every two minutes, a scheduled WordPress cron task (qahm_cron_data_manage) reads and processes those queued files.
In versions up to and including 5.3.0, serialize_escape() fails to strip path traversal sequences from the raw_name parameter, while wrap_unserialize_static() passes the dlevent_ver payload directly into PHP’s native unserialize() function without an allowed_classes restriction.
Because the plugin bundles guzzlehttp/guzzle, attackers craft a serialized GuzzleHttp\Cookie\FileCookieJar object containing malicious PHP code and plant it via the unauthenticated AJAX endpoint. When wp-cron.php runs, PHP deserializes the planted object, and the FileCookieJar destructor writes the attacker’s PHP webshell to disk.
The Operational Risk: What an Attacker Gains
- Unauthenticated Remote Code Execution: Attackers plant a serialized payload and trigger
/wp-cron.phpto write and execute arbitrary PHP code within seconds. - Bundled Gadget Weaponization: The plugin ships its own exploitable
FileCookieJargadget class, guaranteeing the exploit chain works out of the box. - Complete Server & Database Takeover: Executed webshells run with full web-server privileges, exposing
wp-config.php, customer tables, and adjacent sites. - Stealthy Queue Execution: Because the file write happens inside a background
wp-cron.phpworker rather than the initial request, basic WAF rules often miss the attack.
The Modern Architectural Remedy
- Legacy Dynamic WordPress: Ingests anonymous visitor telemetry into local server queues and processes it with native PHP
unserialize()alongside bundled Composer libraries. - Modern Pre-Rendered Edge Architecture: Serves immutable static HTML from the global edge and routes behavioral analytics to isolated, stateless telemetry endpoints with zero server-side object deserialization.
Immediate Action Items for WordPress Operators
- Update or Remove Immediately: Upgrade
qa-heatmap-analyticsabove5.3.0, or deactivate and uninstall the plugin. - Audit Behavioral Data & Uploads: Inspect plugin data directories and
wp-content/for unauthorized.phpfiles created bywp-cron.php. - Review Logs for
qahm-ajax.php: Check HTTP logs for suspicious POST requests toqahm-ajax.phpfollowed by requests to/wp-cron.php. - Restrict Direct
wp-cron.phpAccess: SetDISABLE_WP_CRONand trigger scheduled jobs via system cron only after patching.
