CVE-2022-3132
Medium · 4.8CVSS
4.8
EPSS
0.8%
Published
Oct 3, 2022
CISA due date
—
Cloudanix analysis
A website analytics plugin allowed certain administrators to add hidden code that could trick other users into revealing information or performing unwanted actions.
- Exploitation
- Requires User Interaction
- Attacker needs
- High Privilege
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Low
- Patch risk
- Low
What it actually does
The plugin fails to sanitize and escape certain settings fields, permitting high-privilege users to store persistent JavaScript payloads that execute in other users' browsers despite the unfiltered_html capability being disabled.
Why it matters to the business
Successful exploitation can lead to theft of session tokens or administrative actions performed under other users' accounts, resulting in unauthorized data access, content tampering, or loss of trust in the affected website.
How an attack unfolds
An attacker obtains high-privilege WordPress credentials, accesses the plugin configuration page, stores a crafted script in an unsanitized setting, and waits for another administrator or user to load the affected dashboard or page where the payload executes.
How to fix it
Upgrade the Goolytics plugin to version 1.1.2 or later, which applies proper sanitization and escaping to all settings.
How to confirm the fix worked
After the update, attempt to save HTML or script content in the plugin settings fields and confirm that the input is rejected or escaped; review the plugin source for esc_attr and wp_kses usage on stored values.
Typical attack path
- Gain high-privilege WordPress administrative access
- Locate the Goolytics settings page
- Insert a malicious script payload into an unsanitized configuration field
- Trigger the payload by having a victim user view the affected page
- Perform actions such as session hijacking or unauthorized configuration changes
How to detect it
Inspect WordPress database options table or plugin settings export files for script tags or event handlers; examine web server and browser console logs for unexpected JavaScript execution originating from plugin settings pages.
What your security team should do
- Immediately update the Goolytics plugin to version 1.1.2 or newer
- Review and restrict high-privilege accounts to the minimum necessary users
- Enable a web application firewall with XSS detection rules
- Audit plugin settings change logs for suspicious entries
The record
The Goolytics WordPress plugin before 1.1.2 does not sanitise and escape some of its settings, which could allow high privilege users to perform Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:16.04:LTS | wordpress | 0 | No fix |
| Ubuntu:18.04:LTS | wordpress | 0 | No fix |
| Ubuntu:20.04:LTS | wordpress | 0 | No fix |
| Ubuntu:22.04:LTS | wordpress | 0 | No fix |
| Ubuntu:24.04:LTS | wordpress | 0 | No fix |
| Ubuntu:24.10 | wordpress | 0 | No fix |
| Ubuntu:25.04 | wordpress | 0 | No fix |
| Ubuntu:25.10 | wordpress | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | wordpress | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | wordpress | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | wordpress | 0 | No fix |
Related vulnerabilities
- CVE-2022-4973 WordPress Core, in versions up to 6.0.2, is vulnerable to Authenticated Stored Cross-Site… Also affects wordpress
- CVE-2024-32111 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')… Also affects wordpress
- CVE-2024-31111 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site… Also affects wordpress
- CVE-2024-6307 WordPress Core is vulnerable to Stored Cross-Site Scripting via the HTML API in various… Also affects wordpress
- CVE-2024-4439 WordPress Core is vulnerable to Stored Cross-Site Scripting via user display names in the… Also affects wordpress
- CVE-2023-5692 WordPress Core is vulnerable to Sensitive Information Exposure in versions up to, and… Also affects wordpress
- CVE-2024-31211 WordPress is an open publishing platform for the Web. Also affects wordpress
- CVE-2024-31210 WordPress is an open publishing platform for the Web. Also affects wordpress